Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",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 trunk/package.mo): time 0.001592/0.001592, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008714/0.0008715, allocations: 94.48 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09128/0.09218, allocations: 56.91 MB / 343.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08295/0.1751, allocations: 51.47 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2185/0.3936, allocations: 87.77 MB / 482.5 MB, free: 5.457 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001805/0.3939, allocations: 83.08 kB / 482.6 MB, free: 5.414 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 588 * Number of variables: 588 Notification: Performance of Generate backend data structure: time 0.1326/0.5265, allocations: 56.17 MB / 0.5261 GB, free: 2.223 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.5266, allocations: 8 kB / 0.5261 GB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004002/0.5306, allocations: 0.6915 MB / 0.5268 GB, free: 1.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003262/0.5338, allocations: 1.656 MB / 0.5284 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.987e-05/0.5339, allocations: 72 kB / 0.5285 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003767/0.5343, allocations: 139.9 kB / 0.5286 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004142/0.5385, allocations: 2.52 MB / 0.5311 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004415/0.5429, allocations: 2.736 MB / 0.5337 GB, free: 10.24 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.819e-05/0.543, allocations: 3.938 kB / 0.5337 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002069/0.5432, allocations: 11.89 kB / 0.5338 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.759e-05/0.5433, allocations: 66 kB / 0.5338 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01447/0.5577, allocations: 8.974 MB / 0.5426 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.5595, allocations: 1.486 MB / 0.544 GB, free: 15.28 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.5606, allocations: 0.7776 MB / 0.5448 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00425/0.5649, allocations: 3.216 MB / 0.5479 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.5649, allocations: 50.5 kB / 0.548 GB, free: 10.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=102): time 2.735e-06/0.5649, allocations: 0 / 0.548 GB, free: 10.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=110): time 0.006191/0.5711, allocations: 3.47 MB / 0.5514 GB, free: 7.418 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.5712, allocations: 115.2 kB / 0.5515 GB, free: 7.281 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/0.573, allocations: 1.346 MB / 0.5528 GB, free: 5.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.515e-05/0.573, allocations: 25.7 kB / 0.5528 GB, free: 5.898 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004943/0.5735, allocations: 0.8797 MB / 0.5537 GB, free: 5.004 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/0.5738, allocations: 378.4 kB / 0.554 GB, free: 4.629 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-05/0.5739, allocations: 0 / 0.554 GB, free: 4.629 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.574, allocations: 365.9 kB / 0.5544 GB, free: 4.266 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008976/0.5749, allocations: 0.6403 MB / 0.555 GB, free: 3.625 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.576, allocations: 0.9993 MB / 0.556 GB, free: 2.469 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.5774, allocations: 0.8504 MB / 0.5568 GB, free: 1.621 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.5774, allocations: 4 kB / 0.5568 GB, free: 1.617 MB / 426.7 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003054/0.5805, allocations: 1.901 MB / 0.5587 GB, free: 15.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.5805, allocations: 4 kB / 0.5587 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.5805, allocations: 12 kB / 0.5587 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.5809, allocations: 130.2 kB / 0.5588 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.5824, allocations: 367.5 kB / 0.5592 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002423/0.5849, allocations: 3.015 MB / 0.5621 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.5859, allocations: 95.42 kB / 0.5622 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.586, allocations: 56.05 kB / 0.5623 GB, free: 11.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002143/0.5862, allocations: 140.5 kB / 0.5624 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/0.5865, allocations: 146.2 kB / 0.5625 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.5891, allocations: 1.439 MB / 0.5639 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.5892, allocations: 12 kB / 0.564 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.5892, allocations: 4 kB / 0.564 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.5892, allocations: 7.984 kB / 0.564 GB, free: 10.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005811/0.595, allocations: 3.614 MB / 0.5675 GB, free: 6.336 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.595, allocations: 4 kB / 0.5675 GB, free: 6.332 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.5961, allocations: 211.8 kB / 0.5677 GB, free: 6.125 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006835/0.5968, allocations: 254.3 kB / 0.5679 GB, free: 5.867 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.615e-05/0.5969, allocations: 23.97 kB / 0.568 GB, free: 5.844 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005103/0.602, allocations: 5.458 MB / 0.5733 GB, free: 44 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.602, allocations: 0 / 0.5733 GB, free: 44 kB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1411/0.7431, allocations: 2.635 MB / 0.5759 GB, free: 77.36 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003745/0.7469, allocations: 3.877 MB / 0.5797 GB, free: 76.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000357/0.7473, allocations: 251.8 kB / 0.5799 GB, free: 76.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002332/0.7475, allocations: 17.39 kB / 0.5799 GB, free: 76.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009464/0.7485, allocations: 88.41 kB / 0.58 GB, free: 76.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.7486, allocations: 68.38 kB / 0.5801 GB, free: 76.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.644e-05/0.7487, allocations: 32.58 kB / 0.5801 GB, free: 76.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001217/0.75, allocations: 1.027 MB / 0.5811 GB, free: 76.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002012/0.752, allocations: 430.6 kB / 0.5815 GB, free: 76.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (inductor_e.inductor[1].i,inductor_e.inductor[2].i,inductor_e.inductor[3].i,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im,converter_s[1].Phi.re,reluctance_s[2].V_m.im,reluctance_s[3].V_m.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 16,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002705/0.7523, allocations: 168.8 kB / 0.5817 GB, free: 76.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.7542, allocations: 1.665 MB / 0.5833 GB, free: 76.06 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7542, allocations: 0 / 0.5833 GB, free: 76.06 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.7555, allocations: 1.096 MB / 0.5844 GB, free: 75.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.7565, allocations: 209 kB / 0.5846 GB, free: 75.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/0.7621, allocations: 3.897 MB / 0.5884 GB, free: 74.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/0.7638, allocations: 2.243 MB / 0.5906 GB, free: 74.23 MB / 442.7 MB Notification: Performance of SimCode: time 5.11e-07/0.7638, allocations: 1.953 kB / 0.5906 GB, free: 74.23 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat does not exist to compare? outputFormat=mat