Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.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.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance",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.001528/0.001528, allocations: 178.4 kB / 8.477 MB, free: 1.883 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.187/1.187, allocations: 205.2 MB / 214.1 MB, free: 5.188 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.0008822/0.0008821, allocations: 90.25 kB / 262.1 MB, free: 5.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1493/0.1503, allocations: 52.96 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06292/0.2132, allocations: 47.59 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.4248, allocations: 83.89 MB / 446.5 MB, free: 10.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001833/0.4251, allocations: 79.91 kB / 446.6 MB, free: 10.48 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: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.07589/0.501, allocations: 32.08 MB / 478.7 MB, free: 12.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.501, allocations: 12 kB / 478.7 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/0.5027, allocations: 316.5 kB / 479 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.5047, allocations: 1.1 MB / 480.1 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.5048, allocations: 44 kB / 480.2 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002081/0.505, allocations: 79.91 kB / 480.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002392/0.5074, allocations: 1.484 MB / 481.7 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002628/0.51, allocations: 1.622 MB / 483.3 MB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.5101, allocations: 0 / 483.3 MB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.5102, allocations: 7.938 kB / 483.3 MB, free: 8.777 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-05/0.5103, allocations: 49.31 kB / 483.4 MB, free: 8.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009132/0.5194, allocations: 5.39 MB / 488.8 MB, free: 3.953 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009431/0.5204, allocations: 0.7662 MB / 489.6 MB, free: 3.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007263/0.5211, allocations: 494.6 kB / 490 MB, free: 2.633 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002522/0.5237, allocations: 1.582 MB / 491.6 MB, free: 1.004 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.5237, allocations: 38.56 kB / 491.7 MB, free: 0.957 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 2.244e-06/0.5237, allocations: 4 kB / 491.7 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.001697/0.5254, allocations: 0.8678 MB / 492.5 MB, free: 76 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.5255, allocations: 81.11 kB / 492.6 MB, free: 15.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/0.5267, allocations: 0.879 MB / 493.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.129e-05/0.5268, allocations: 29.7 kB / 493.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003528/0.5271, allocations: 0.5408 MB / 494.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.5273, allocations: 212.9 kB / 494.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.5274, allocations: 0 / 494.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5275, allocations: 337.9 kB / 494.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005321/0.5281, allocations: 361.4 kB / 494.9 MB, free: 13.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006508/0.5287, allocations: 0.5174 MB / 495.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007766/0.5295, allocations: 460.3 kB / 495.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.992e-06/0.5295, allocations: 4 kB / 495.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001582/0.5311, allocations: 1.009 MB / 496.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.5311, allocations: 4 kB / 496.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.5312, allocations: 11.94 kB / 496.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.5312, allocations: 8 kB / 496.9 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009059/0.5321, allocations: 199.8 kB / 497.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.5321, allocations: 8 kB / 497.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005797/0.5327, allocations: 87.23 kB / 497.2 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.034e-05/0.5328, allocations: 24 kB / 497.3 MB, free: 11.21 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 90 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001342/0.5329, allocations: 124.7 kB / 497.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.5331, allocations: 90.88 kB / 497.5 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001355/0.5344, allocations: 0.7285 MB / 498.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.5345, allocations: 8 kB / 498.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.5345, allocations: 4 kB / 498.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5345, allocations: 3.984 kB / 498.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00328/0.5378, allocations: 2.24 MB / 0.4887 GB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.5378, allocations: 4 kB / 0.4887 GB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005928/0.5384, allocations: 116 kB / 0.4888 GB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004414/0.5388, allocations: 140.7 kB / 0.489 GB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.485e-05/0.5389, allocations: 15.98 kB / 0.489 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002779/0.5417, allocations: 2.467 MB / 0.4914 GB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5417, allocations: 0 / 0.4914 GB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002045/0.5438, allocations: 1.543 MB / 0.4929 GB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002712/0.5465, allocations: 2.398 MB / 0.4952 GB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002878/0.5468, allocations: 187.8 kB / 0.4954 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.547, allocations: 11.98 kB / 0.4954 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006389/0.5476, allocations: 51.95 kB / 0.4955 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.5477, allocations: 51.83 kB / 0.4955 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.5478, allocations: 16 kB / 0.4956 GB, free: 0.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0008284/0.5486, allocations: 0.6748 MB / 0.4962 GB, free: 40 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.001618/0.5503, allocations: 358.4 kB / 0.4966 GB, free: 15.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000236/0.5505, allocations: 127.4 kB / 0.4967 GB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.5516, allocations: 0.7895 MB / 0.4974 GB, free: 14.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5516, allocations: 4 kB / 0.4974 GB, free: 14.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000888/0.5525, allocations: 0.5437 MB / 0.498 GB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007732/0.5533, allocations: 144.3 kB / 0.4981 GB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00397/0.5573, allocations: 2.298 MB / 0.5004 GB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/0.5587, allocations: 1.601 MB / 0.5019 GB, free: 10.09 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5587, allocations: 0 / 0.5019 GB, free: 10.09 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance_res.mat does not exist to compare? outputFormat=mat