Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_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.001151/0.001151, allocations: 182.8 kB / 8.135 MB, free: 2.133 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.115/1.115, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008807/0.0008807, allocations: 101.6 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09242/0.09334, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.2775, allocations: 50.39 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.3838, allocations: 111.3 MB / 498.3 MB, free: 7.473 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.3841, allocations: 87.89 kB / 498.4 MB, free: 7.387 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.35/0.7341, allocations: 96.36 MB / 0.5808 GB, free: 28.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.7341, allocations: 12 kB / 0.5808 GB, free: 28.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002007/0.7361, allocations: 0.5063 MB / 0.5813 GB, free: 28.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004904/0.7411, allocations: 2.564 MB / 0.5838 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.7412, allocations: 119.9 kB / 0.584 GB, free: 25.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005784/0.7418, allocations: 211.9 kB / 0.5842 GB, free: 25.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005455/0.7473, allocations: 3.786 MB / 0.5879 GB, free: 21.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006429/0.7537, allocations: 4.384 MB / 0.5921 GB, free: 16.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.33e-05/0.7538, allocations: 7.906 kB / 0.5921 GB, free: 16.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002904/0.7541, allocations: 7.984 kB / 0.5922 GB, free: 16.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.7542, allocations: 175.1 kB / 0.5923 GB, free: 16.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01964/0.7739, allocations: 14.35 MB / 0.6063 GB, free: 1.938 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.7758, allocations: 1.634 MB / 0.6079 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002655/0.7784, allocations: 1.993 MB / 0.6099 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003213/0.7788, allocations: 151 kB / 0.61 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.7788, allocations: 52.56 kB / 0.6101 GB, free: 14.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=201): time 4.929e-06/0.7788, allocations: 0 / 0.6101 GB, free: 14.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=221): time 0.01382/0.7927, allocations: 7.386 MB / 0.6173 GB, free: 6.637 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.7927, allocations: 77.41 kB / 0.6174 GB, free: 6.551 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003123/0.7959, allocations: 1.769 MB / 0.6191 GB, free: 4.75 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/0.7961, allocations: 25.7 kB / 0.6191 GB, free: 4.719 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007155/0.7968, allocations: 1.254 MB / 0.6203 GB, free: 3.445 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006457/0.7975, allocations: 0.7082 MB / 0.621 GB, free: 2.723 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.7976, allocations: 0 / 0.621 GB, free: 2.723 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.7978, allocations: 402.5 kB / 0.6214 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.7996, allocations: 1.25 MB / 0.6226 GB, free: 1.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002016/0.8016, allocations: 1.658 MB / 0.6243 GB, free: 15.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00212/0.8037, allocations: 1.505 MB / 0.6257 GB, free: 13.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/0.8037, allocations: 4 kB / 0.6257 GB, free: 13.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006241/0.81, allocations: 3.791 MB / 0.6294 GB, free: 9.926 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.81, allocations: 4 kB / 0.6294 GB, free: 9.922 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/0.8101, allocations: 12 kB / 0.6294 GB, free: 9.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001997/0.8121, allocations: 0.7599 MB / 0.6302 GB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002347/0.8144, allocations: 0.5227 MB / 0.6307 GB, free: 8.613 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009182/0.8236, allocations: 8.093 MB / 0.6386 GB, free: 180 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001946/0.8256, allocations: 59.92 kB / 0.6387 GB, free: 120 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003368/0.826, allocations: 83.98 kB / 0.6387 GB, free: 36 kB / 410.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.0005525/0.8265, allocations: 152.4 kB / 0.6389 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006901/0.8272, allocations: 245 kB / 0.6391 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006422/0.8336, allocations: 3.548 MB / 0.6426 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/0.8337, allocations: 20 kB / 0.6426 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.117e-05/0.8337, allocations: 8 kB / 0.6426 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.231e-05/0.8338, allocations: 11.95 kB / 0.6426 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01356/0.8473, allocations: 7.386 MB / 0.6498 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.639e-06/0.8473, allocations: 4 kB / 0.6498 GB, free: 4.523 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00189/0.8492, allocations: 391.8 kB / 0.6502 GB, free: 4.141 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/0.8516, allocations: 0.7993 MB / 0.651 GB, free: 3.328 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001943/0.8518, allocations: 23.97 kB / 0.651 GB, free: 3.305 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1279/0.9797, allocations: 9.51 MB / 0.6603 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.944e-06/0.9798, allocations: 11.16 kB / 0.6603 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007666/0.9874, allocations: 5.617 MB / 0.6658 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008669/0.9961, allocations: 7.968 MB / 0.6736 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/0.9975, allocations: 0.604 MB / 0.6742 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006024/0.9982, allocations: 18.33 kB / 0.6742 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/0.9996, allocations: 80.22 kB / 0.6743 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002816/0.9999, allocations: 145.2 kB / 0.6744 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/1, allocations: 62.84 kB / 0.6745 GB, free: 109.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001917/1.002, allocations: 1.335 MB / 0.6758 GB, free: 109.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002968/1.005, allocations: 0.7257 MB / 0.6765 GB, free: 109.3 MB / 426.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.000702/1.006, allocations: 350.7 kB / 0.6768 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004834/1.011, allocations: 3.635 MB / 0.6804 GB, free: 108.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/1.011, allocations: 3.906 kB / 0.6804 GB, free: 108.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002919/1.014, allocations: 2.288 MB / 0.6826 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/1.016, allocations: 0.5046 MB / 0.6831 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/1.028, allocations: 6.457 MB / 0.6894 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003356/1.031, allocations: 3.02 MB / 0.6923 GB, free: 106.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/1.031, allocations: 0 / 0.6923 GB, free: 106.2 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat