Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001403/0.001403, allocations: 183.8 kB / 8.477 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.076/1.076, allocations: 205.2 MB / 214.1 MB, free: 5.461 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008867/0.0008868, allocations: 86.78 kB / 262.1 MB, free: 5.516 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1473/0.1482, allocations: 52.98 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05961/0.2078, allocations: 47.56 MB / 362.6 MB, free: 9.922 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2156/0.4235, allocations: 101.4 MB / 464 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.4237, allocations: 82.39 kB / 464.1 MB, free: 5.172 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.1071/0.5308, allocations: 41.47 MB / 0.4937 GB, free: 5.062 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.5309, allocations: 8 kB / 0.4938 GB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009212/0.5318, allocations: 257.2 kB / 0.494 GB, free: 4.801 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002789/0.5346, allocations: 1.357 MB / 0.4953 GB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.793e-05/0.5347, allocations: 64 kB / 0.4954 GB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000321/0.535, allocations: 111.1 kB / 0.4955 GB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003144/0.5382, allocations: 1.723 MB / 0.4972 GB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003562/0.5418, allocations: 2.061 MB / 0.4992 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.403e-05/0.5418, allocations: 4 kB / 0.4992 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.542, allocations: 0 / 0.4992 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.122e-05/0.5421, allocations: 87.45 kB / 0.4993 GB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.5534, allocations: 6.852 MB / 0.506 GB, free: 8.699 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.5545, allocations: 0.6868 MB / 0.5066 GB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.5556, allocations: 0.7362 MB / 0.5074 GB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002663/0.5559, allocations: 129.8 kB / 0.5075 GB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.556, allocations: 47.34 kB / 0.5075 GB, free: 7.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=90): time 3.477e-06/0.556, allocations: 0 / 0.5075 GB, free: 7.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=113): time 0.008947/0.5649, allocations: 4.596 MB / 0.512 GB, free: 2.402 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.565, allocations: 64.41 kB / 0.5121 GB, free: 2.328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.5663, allocations: 0.8512 MB / 0.5129 GB, free: 1.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.977e-05/0.5664, allocations: 25.7 kB / 0.5129 GB, free: 1.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004439/0.5669, allocations: 0.7004 MB / 0.5136 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000296/0.5672, allocations: 386.3 kB / 0.514 GB, free: 340 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.441e-05/0.5673, allocations: 0 / 0.514 GB, free: 340 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5674, allocations: 357.8 kB / 0.5143 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008833/0.5683, allocations: 0.6273 MB / 0.5149 GB, free: 15.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.5694, allocations: 0.924 MB / 0.5158 GB, free: 14.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.5705, allocations: 0.7797 MB / 0.5166 GB, free: 13.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.5706, allocations: 0 / 0.5166 GB, free: 13.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003707/0.5743, allocations: 2.22 MB / 0.5188 GB, free: 11.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.5743, allocations: 8 kB / 0.5188 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.5743, allocations: 8 kB / 0.5188 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.5759, allocations: 0.6378 MB / 0.5194 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.577, allocations: 275.6 kB / 0.5197 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006622/0.5837, allocations: 5.743 MB / 0.5253 GB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.5847, allocations: 47.94 kB / 0.5253 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.5849, allocations: 55.91 kB / 0.5254 GB, free: 4.262 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002599/0.5851, allocations: 136.7 kB / 0.5255 GB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000309/0.5854, allocations: 122.5 kB / 0.5256 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.5891, allocations: 2.096 MB / 0.5277 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.5892, allocations: 8 kB / 0.5277 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.5892, allocations: 12 kB / 0.5277 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.5892, allocations: 11.88 kB / 0.5277 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00702/0.5962, allocations: 4.039 MB / 0.5316 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.5962, allocations: 3.938 kB / 0.5316 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007804/0.597, allocations: 175.7 kB / 0.5318 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001929/0.599, allocations: 0.71 MB / 0.5325 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.5991, allocations: 15.98 kB / 0.5325 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008213/0.6073, allocations: 7.386 MB / 0.5397 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.6073, allocations: 7.938 kB / 0.5397 GB, free: 5.062 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004761/0.6121, allocations: 3.212 MB / 0.5429 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005754/0.6179, allocations: 4.527 MB / 0.5473 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006708/0.6186, allocations: 351.4 kB / 0.5476 GB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/0.6188, allocations: 11.98 kB / 0.5476 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000798/0.6196, allocations: 55.94 kB / 0.5477 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.6198, allocations: 68.75 kB / 0.5478 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.571e-05/0.6199, allocations: 35.98 kB / 0.5478 GB, free: 12.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0009198/0.6208, allocations: 0.6435 MB / 0.5484 GB, free: 11.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001849/0.6227, allocations: 415.9 kB / 0.5488 GB, free: 11.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(7,59.2%) 21,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004437/0.6231, allocations: 285.8 kB / 0.5491 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002983/0.6261, allocations: 2.081 MB / 0.5511 GB, free: 9.051 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.6261, allocations: 4 kB / 0.5511 GB, free: 9.047 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.6283, allocations: 1.389 MB / 0.5525 GB, free: 7.605 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.6295, allocations: 264 kB / 0.5527 GB, free: 7.348 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005368/0.6349, allocations: 3.25 MB / 0.5559 GB, free: 4.012 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001622/0.6365, allocations: 1.773 MB / 0.5576 GB, free: 2.199 MB / 410.7 MB Notification: Performance of SimCode: time 7.12e-07/0.6365, allocations: 3.938 kB / 0.5576 GB, free: 2.195 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe 2>&1)