Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",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 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 183.6 kB / 8.133 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.125/1.125, allocations: 221.4 MB / 229.9 MB, free: 3.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008911/0.0008911, allocations: 91.64 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09046/0.09138, allocations: 55.83 MB / 336.6 MB, free: 9.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.2742, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1066/0.3808, allocations: 111.4 MB / 498.4 MB, free: 7.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.3811, allocations: 84.84 kB / 498.5 MB, free: 7.188 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.3486/0.7296, allocations: 96.5 MB / 0.5811 GB, free: 17.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.7297, allocations: 8 kB / 0.5811 GB, free: 17.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002342/0.732, allocations: 0.5102 MB / 0.5816 GB, free: 16.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005566/0.7376, allocations: 2.561 MB / 0.5841 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.7378, allocations: 120 kB / 0.5842 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001179/0.739, allocations: 211.9 kB / 0.5844 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007054/0.7461, allocations: 3.778 MB / 0.5881 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007779/0.7539, allocations: 4.388 MB / 0.5924 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.571e-05/0.754, allocations: 15.83 kB / 0.5924 GB, free: 5.707 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004023/0.7544, allocations: 4 kB / 0.5924 GB, free: 5.703 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/0.7545, allocations: 179.1 kB / 0.5925 GB, free: 5.527 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02186/0.7764, allocations: 14.35 MB / 0.6066 GB, free: 6.996 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/0.7787, allocations: 1.634 MB / 0.6082 GB, free: 5.352 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002669/0.7814, allocations: 1.997 MB / 0.6101 GB, free: 3.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003211/0.7818, allocations: 141.8 kB / 0.6102 GB, free: 3.203 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.7818, allocations: 52.56 kB / 0.6103 GB, free: 3.145 MB / 394.7 MB Notification: Performance of pre-optimization done (n=201): time 4.228e-06/0.7818, allocations: 8 kB / 0.6103 GB, free: 3.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=221): time 0.01375/0.7956, allocations: 7.383 MB / 0.6175 GB, free: 11.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.7957, allocations: 77.41 kB / 0.6176 GB, free: 11.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002855/0.7985, allocations: 1.769 MB / 0.6193 GB, free: 9.832 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003081/0.7989, allocations: 29.7 kB / 0.6193 GB, free: 9.797 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000686/0.7995, allocations: 1.253 MB / 0.6206 GB, free: 8.527 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007177/0.8003, allocations: 0.7081 MB / 0.6213 GB, free: 7.809 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.8004, allocations: 0 / 0.6213 GB, free: 7.809 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.8006, allocations: 398.5 kB / 0.6216 GB, free: 7.414 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001714/0.8023, allocations: 1.246 MB / 0.6228 GB, free: 6.164 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/0.8043, allocations: 1.666 MB / 0.6245 GB, free: 4.332 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.8063, allocations: 1.505 MB / 0.6259 GB, free: 2.832 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.8063, allocations: 4 kB / 0.6259 GB, free: 2.828 MB / 410.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005919/0.8122, allocations: 3.786 MB / 0.6296 GB, free: 15.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.8123, allocations: 12 kB / 0.6297 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.8123, allocations: 12 kB / 0.6297 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001868/0.8142, allocations: 0.7582 MB / 0.6304 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002233/0.8164, allocations: 0.5266 MB / 0.6309 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008573/0.825, allocations: 8.079 MB / 0.6388 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.827, allocations: 55.86 kB / 0.6389 GB, free: 5.234 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/0.8273, allocations: 83.98 kB / 0.6389 GB, free: 5.152 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000413/0.8277, allocations: 162.3 kB / 0.6391 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004552/0.8282, allocations: 253 kB / 0.6393 GB, free: 4.738 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005728/0.8339, allocations: 3.536 MB / 0.6428 GB, free: 1.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.8339, allocations: 24 kB / 0.6428 GB, free: 1.156 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.834, allocations: 8 kB / 0.6428 GB, free: 1.148 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.062e-05/0.834, allocations: 15.95 kB / 0.6428 GB, free: 1.133 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.8461, allocations: 7.381 MB / 0.65 GB, free: 9.703 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.749e-06/0.8461, allocations: 7.938 kB / 0.6501 GB, free: 9.695 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/0.848, allocations: 391.8 kB / 0.6504 GB, free: 9.312 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00222/0.8502, allocations: 0.7971 MB / 0.6512 GB, free: 8.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001796/0.8504, allocations: 27.97 kB / 0.6512 GB, free: 8.473 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1229/0.9733, allocations: 9.501 MB / 0.6605 GB, free: 123.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.9734, allocations: 3.844 kB / 0.6605 GB, free: 123.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006687/0.9801, allocations: 5.632 MB / 0.666 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008415/0.9885, allocations: 7.967 MB / 0.6738 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/0.99, allocations: 0.6056 MB / 0.6744 GB, free: 122 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005066/0.9905, allocations: 16.83 kB / 0.6744 GB, free: 122 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.9919, allocations: 80.17 kB / 0.6745 GB, free: 122 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003047/0.9922, allocations: 142.8 kB / 0.6746 GB, free: 122 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.9924, allocations: 66.11 kB / 0.6747 GB, free: 122 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001976/0.9943, allocations: 1.337 MB / 0.676 GB, free: 121.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003024/0.9974, allocations: 0.7264 MB / 0.6767 GB, free: 121.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 26,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005495/0.9979, allocations: 343.7 kB / 0.677 GB, free: 121.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004392/1.002, allocations: 3.635 MB / 0.6806 GB, free: 121.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.002, allocations: 0 / 0.6806 GB, free: 121.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002886/1.005, allocations: 2.284 MB / 0.6828 GB, free: 120.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/1.008, allocations: 0.513 MB / 0.6833 GB, free: 120.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/1.019, allocations: 6.448 MB / 0.6896 GB, free: 119.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002919/1.022, allocations: 3.025 MB / 0.6926 GB, free: 118.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/1.022, allocations: 3.438 kB / 0.6926 GB, free: 118.7 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat