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_Inverter.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_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",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.001719/0.001719, allocations: 186.9 kB / 8.138 MB, free: 2.219 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.172/1.172, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.000953/0.0009529, allocations: 97.91 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09112/0.0921, allocations: 55.84 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.269, allocations: 50.38 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.3771, allocations: 108.2 MB / 495.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.3774, allocations: 88.72 kB / 495.3 MB, free: 10.5 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.3045/0.6819, allocations: 81.71 MB / 0.5634 GB, free: 45.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.682, allocations: 8 kB / 0.5634 GB, free: 45.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003946/0.6859, allocations: 0.7257 MB / 0.5642 GB, free: 44.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006363/0.6923, allocations: 3.3 MB / 0.5674 GB, free: 41.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.49e-05/0.6924, allocations: 100 kB / 0.5675 GB, free: 41.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003797/0.6928, allocations: 187.9 kB / 0.5677 GB, free: 41.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004754/0.6975, allocations: 3.156 MB / 0.5707 GB, free: 38.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005112/0.7027, allocations: 3.64 MB / 0.5743 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-05/0.7027, allocations: 4 kB / 0.5743 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002625/0.703, allocations: 3.906 kB / 0.5743 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-05/0.7031, allocations: 146.3 kB / 0.5744 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01557/0.7187, allocations: 12.69 MB / 0.5868 GB, free: 21.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.72, allocations: 1.056 MB / 0.5879 GB, free: 20.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.7216, allocations: 1.333 MB / 0.5892 GB, free: 18.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005458/0.7271, allocations: 4.002 MB / 0.5931 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.7271, allocations: 51.88 kB / 0.5931 GB, free: 14.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=149): time 3.086e-06/0.7271, allocations: 4 kB / 0.5931 GB, free: 14.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.006885/0.734, allocations: 4.358 MB / 0.5974 GB, free: 10.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.233e-05/0.7341, allocations: 68.66 kB / 0.5974 GB, free: 10.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.7355, allocations: 1.216 MB / 0.5986 GB, free: 8.855 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.28e-05/0.7356, allocations: 25.7 kB / 0.5987 GB, free: 8.824 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003559/0.736, allocations: 1.144 MB / 0.5998 GB, free: 7.664 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002527/0.7362, allocations: 0.4965 MB / 0.6003 GB, free: 7.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.146e-05/0.7363, allocations: 4 kB / 0.6003 GB, free: 7.156 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.7364, allocations: 373.9 kB / 0.6006 GB, free: 6.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009101/0.7374, allocations: 0.7068 MB / 0.6013 GB, free: 6.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.7384, allocations: 1.165 MB / 0.6024 GB, free: 4.711 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.7399, allocations: 0.9821 MB / 0.6034 GB, free: 3.727 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.74, allocations: 7.906 kB / 0.6034 GB, free: 3.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003539/0.7435, allocations: 2.399 MB / 0.6058 GB, free: 1.281 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.7435, allocations: 4 kB / 0.6058 GB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.7435, allocations: 12.31 kB / 0.6058 GB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006281/0.7442, allocations: 271.3 kB / 0.606 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.7458, allocations: 407.3 kB / 0.6064 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004822/0.7506, allocations: 5.372 MB / 0.6117 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.7519, allocations: 48.16 kB / 0.6117 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.7521, allocations: 80 kB / 0.6118 GB, free: 10.74 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 205 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002784/0.7524, allocations: 156.4 kB / 0.6119 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002568/0.7526, allocations: 169.8 kB / 0.6121 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004213/0.7568, allocations: 2.281 MB / 0.6143 GB, free: 8.062 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.7569, allocations: 19.94 kB / 0.6143 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.7569, allocations: 8 kB / 0.6144 GB, free: 8.035 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.7569, allocations: 7.969 kB / 0.6144 GB, free: 8.027 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008141/0.7651, allocations: 5.026 MB / 0.6193 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.7651, allocations: 0 / 0.6193 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.7662, allocations: 219.7 kB / 0.6195 GB, free: 2.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.7674, allocations: 452.6 kB / 0.6199 GB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.7675, allocations: 15.98 kB / 0.6199 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009235/0.7768, allocations: 9.489 MB / 0.6292 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.7768, allocations: 0 / 0.6292 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005221/0.782, allocations: 3.373 MB / 0.6325 GB, free: 4.582 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006502/0.7886, allocations: 4.769 MB / 0.6371 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009337/0.7895, allocations: 418.8 kB / 0.6375 GB, free: 15.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002871/0.7898, allocations: 8 kB / 0.6375 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009953/0.7908, allocations: 59.95 kB / 0.6376 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/0.791, allocations: 81.17 kB / 0.6377 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.7911, allocations: 39.94 kB / 0.6377 GB, free: 15.06 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001372/0.7925, allocations: 0.9154 MB / 0.6386 GB, free: 14.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00257/0.7951, allocations: 0.5469 MB / 0.6391 GB, free: 13.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(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.0005081/0.7956, allocations: 354.7 kB / 0.6395 GB, free: 13.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003136/0.7988, allocations: 2.152 MB / 0.6416 GB, free: 11.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.7988, allocations: 0 / 0.6416 GB, free: 11.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002252/0.801, allocations: 1.471 MB / 0.643 GB, free: 9.527 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/0.8028, allocations: 344.5 kB / 0.6434 GB, free: 9.195 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008845/0.8117, allocations: 4.531 MB / 0.6478 GB, free: 4.586 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002582/0.8143, allocations: 2.477 MB / 0.6502 GB, free: 2.078 MB / 426.7 MB Notification: Performance of SimCode: time 5.41e-07/0.8143, allocations: 0 / 0.6502 GB, free: 2.078 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.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_Inverter_res.mat does not exist to compare? outputFormat=mat