Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001107/0.001107, allocations: 182.2 kB / 8.138 MB, free: 2.223 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.179/1.179, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009903/0.0009903, allocations: 101.4 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09102/0.09204, allocations: 55.83 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.2668, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.3839, allocations: 118.6 MB / 0.4938 GB, free: 92 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.1218/0.5057, allocations: 95.81 kB / 0.4939 GB, free: 106.4 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.2979/0.8036, allocations: 136.8 MB / 0.6275 GB, free: 13.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.8037, allocations: 12 kB / 0.6275 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00574/0.8094, allocations: 0.9809 MB / 0.6285 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/0.8205, allocations: 4.492 MB / 0.6328 GB, free: 7.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002682/0.8208, allocations: 160 kB / 0.633 GB, free: 7.344 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/0.8223, allocations: 283.9 kB / 0.6333 GB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01132/0.8337, allocations: 5.217 MB / 0.6384 GB, free: 1.844 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/0.8464, allocations: 5.986 MB / 0.6442 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/0.8465, allocations: 3.906 kB / 0.6442 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000437/0.847, allocations: 7.938 kB / 0.6442 GB, free: 11.65 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002024/0.8472, allocations: 241.8 kB / 0.6444 GB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1525/0.9996, allocations: 20.18 MB / 0.6642 GB, free: 79.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002436/1.002, allocations: 1.995 MB / 0.6661 GB, free: 79.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003294/1.005, allocations: 2.596 MB / 0.6686 GB, free: 79.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007783/1.013, allocations: 5.481 MB / 0.674 GB, free: 78.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/1.013, allocations: 64.72 kB / 0.674 GB, free: 78.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 4.318e-06/1.013, allocations: 0 / 0.674 GB, free: 78.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.01251/1.026, allocations: 7.833 MB / 0.6817 GB, free: 77.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/1.026, allocations: 77.12 kB / 0.6818 GB, free: 77.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002764/1.029, allocations: 2.132 MB / 0.6839 GB, free: 77.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/1.029, allocations: 29.14 kB / 0.6839 GB, free: 77.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000635/1.029, allocations: 1.69 MB / 0.6855 GB, free: 76.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004993/1.03, allocations: 0.8334 MB / 0.6863 GB, free: 75.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/1.03, allocations: 0 / 0.6863 GB, free: 75.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/1.03, allocations: 419.9 kB / 0.6867 GB, free: 75.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/1.032, allocations: 1.364 MB / 0.6881 GB, free: 75.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001887/1.034, allocations: 1.931 MB / 0.69 GB, free: 75.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/1.036, allocations: 1.735 MB / 0.6917 GB, free: 74.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/1.036, allocations: 6.25 kB / 0.6917 GB, free: 74.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=356) (initialization): time 0.00622/1.042, allocations: 4.255 MB / 0.6958 GB, free: 74.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/1.042, allocations: 6.844 kB / 0.6958 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/1.043, allocations: 17.94 kB / 0.6958 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/1.044, allocations: 0.6477 MB / 0.6965 GB, free: 74.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002524/1.047, allocations: 0.6108 MB / 0.6971 GB, free: 74.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007952/1.055, allocations: 9.41 MB / 0.7063 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002062/1.057, allocations: 55.75 kB / 0.7063 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002188/1.057, allocations: 107.3 kB / 0.7064 GB, free: 69.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (306): * Single equations (assignments): 301 * 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 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004172/1.057, allocations: 171.2 kB / 0.7066 GB, free: 69.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004179/1.058, allocations: 291.2 kB / 0.7069 GB, free: 69.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006155/1.064, allocations: 4.052 MB / 0.7108 GB, free: 68.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/1.064, allocations: 25.19 kB / 0.7108 GB, free: 68.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/1.064, allocations: 10.06 kB / 0.7108 GB, free: 68.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/1.064, allocations: 16.27 kB / 0.7109 GB, free: 68.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/1.076, allocations: 8.617 MB / 0.7193 GB, free: 67.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/1.076, allocations: 3.812 kB / 0.7193 GB, free: 67.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00186/1.078, allocations: 402.6 kB / 0.7197 GB, free: 67.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002028/1.08, allocations: 0.7981 MB / 0.7204 GB, free: 67.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001739/1.08, allocations: 29.62 kB / 0.7205 GB, free: 67.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/1.091, allocations: 13.51 MB / 0.7337 GB, free: 60.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.092, allocations: 3.469 kB / 0.7337 GB, free: 60.16 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008294/1.1, allocations: 6.218 MB / 0.7397 GB, free: 57.8 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01121/1.111, allocations: 8.695 MB / 0.7482 GB, free: 53.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/1.113, allocations: 0.6963 MB / 0.7489 GB, free: 53.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005241/1.113, allocations: 21.05 kB / 0.7489 GB, free: 53.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/1.115, allocations: 85.2 kB / 0.749 GB, free: 53.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/1.115, allocations: 149.6 kB / 0.7492 GB, free: 53.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/1.115, allocations: 72.86 kB / 0.7492 GB, free: 53.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002252/1.118, allocations: 1.603 MB / 0.7508 GB, free: 52.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003406/1.121, allocations: 0.9076 MB / 0.7517 GB, free: 52.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (191): * Single equations (assignments): 185 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006375/1.122, allocations: 432.9 kB / 0.7521 GB, free: 52.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004828/1.127, allocations: 3.906 MB / 0.7559 GB, free: 50.63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.127, allocations: 3.344 kB / 0.7559 GB, free: 50.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003146/1.13, allocations: 2.525 MB / 0.7584 GB, free: 49.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/1.133, allocations: 0.5863 MB / 0.759 GB, free: 49.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0141/1.147, allocations: 7.945 MB / 0.7667 GB, free: 46.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003773/1.15, allocations: 3.733 MB / 0.7704 GB, free: 45.06 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/1.15, allocations: 1.156 kB / 0.7704 GB, free: 45.06 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat