Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",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.001115/0.001115, allocations: 178.9 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.127/1.127, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.000915/0.000915, allocations: 93.91 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1541/0.155, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06181/0.2169, allocations: 47.58 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2295/0.4464, allocations: 108.8 MB / 471.5 MB, free: 120 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.4467, allocations: 80.45 kB / 471.6 MB, free: 80 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.2094/0.6561, allocations: 82.65 MB / 0.5412 GB, free: 4.281 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.6561, allocations: 19.98 kB / 0.5412 GB, free: 4.262 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004676/0.6608, allocations: 0.7373 MB / 0.542 GB, free: 3.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008626/0.6695, allocations: 3.304 MB / 0.5452 GB, free: 160 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.6697, allocations: 108 kB / 0.5453 GB, free: 52 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009562/0.6706, allocations: 188 kB / 0.5455 GB, free: 15.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007095/0.6778, allocations: 3.203 MB / 0.5486 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00897/0.6868, allocations: 3.724 MB / 0.5522 GB, free: 8.812 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.6869, allocations: 0 / 0.5522 GB, free: 8.812 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000513/0.6874, allocations: 4 kB / 0.5522 GB, free: 8.809 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/0.6876, allocations: 142.4 kB / 0.5524 GB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02407/0.7117, allocations: 13.36 MB / 0.5654 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.7134, allocations: 1.162 MB / 0.5666 GB, free: 9.797 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002084/0.7155, allocations: 1.34 MB / 0.5679 GB, free: 8.453 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005861/0.7214, allocations: 3.412 MB / 0.5712 GB, free: 4.949 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/0.7215, allocations: 56.56 kB / 0.5712 GB, free: 4.887 MB / 426.7 MB Notification: Performance of pre-optimization done (n=171): time 3.827e-06/0.7215, allocations: 0 / 0.5712 GB, free: 4.887 MB / 426.7 MB Notification: Performance of matching and sorting (n=174): time 0.008974/0.7304, allocations: 4.742 MB / 0.5759 GB, free: 48 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1091/0.8396, allocations: 75.59 kB / 0.5759 GB, free: 137.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.8415, allocations: 1.257 MB / 0.5772 GB, free: 137.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002524/0.8418, allocations: 25.7 kB / 0.5772 GB, free: 137.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004301/0.8422, allocations: 1.146 MB / 0.5783 GB, free: 137.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003548/0.8426, allocations: 0.5659 MB / 0.5789 GB, free: 137.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.081e-05/0.8427, allocations: 3.906 kB / 0.5789 GB, free: 137.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.469e-05/0.8428, allocations: 385.1 kB / 0.5792 GB, free: 137.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.8438, allocations: 0.7556 MB / 0.58 GB, free: 137.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.845, allocations: 1.223 MB / 0.5812 GB, free: 136.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.8466, allocations: 1.033 MB / 0.5822 GB, free: 136.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.8466, allocations: 7.656 kB / 0.5822 GB, free: 136.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.004077/0.8507, allocations: 2.646 MB / 0.5848 GB, free: 136.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.8507, allocations: 8.219 kB / 0.5848 GB, free: 136.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/0.8508, allocations: 13.69 kB / 0.5848 GB, free: 136.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008725/0.8517, allocations: 387.9 kB / 0.5852 GB, free: 136.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.8534, allocations: 428.8 kB / 0.5856 GB, free: 136.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005534/0.859, allocations: 7.405 MB / 0.5928 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/0.8609, allocations: 38.53 kB / 0.5928 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.8611, allocations: 84.81 kB / 0.5929 GB, free: 131.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 214 * 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 {(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002958/0.8614, allocations: 141.4 kB / 0.5931 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002433/0.8616, allocations: 186.6 kB / 0.5932 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004195/0.8658, allocations: 2.526 MB / 0.5957 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.8659, allocations: 21.84 kB / 0.5957 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.8659, allocations: 10.03 kB / 0.5957 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/0.8659, allocations: 7.219 kB / 0.5957 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007836/0.8737, allocations: 5.396 MB / 0.601 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.8738, allocations: 3.844 kB / 0.601 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.8749, allocations: 229.5 kB / 0.6012 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.8763, allocations: 0.5415 MB / 0.6018 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.8764, allocations: 22.59 kB / 0.6018 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008899/0.8853, allocations: 11.5 MB / 0.613 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.8854, allocations: 3.375 kB / 0.613 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004837/0.8902, allocations: 3.71 MB / 0.6166 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005913/0.8961, allocations: 5.205 MB / 0.6217 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000846/0.897, allocations: 446.6 kB / 0.6221 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003832/0.8974, allocations: 16.59 kB / 0.6222 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.8984, allocations: 48.56 kB / 0.6222 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.8986, allocations: 95.97 kB / 0.6223 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.8987, allocations: 44.81 kB / 0.6223 GB, free: 120.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001272/0.9, allocations: 0.9439 MB / 0.6233 GB, free: 120.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002747/0.9028, allocations: 0.5782 MB / 0.6238 GB, free: 120.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,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,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 115 * 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%) 7,(3,100.0%) 9,(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.0004654/0.9033, allocations: 342.4 kB / 0.6242 GB, free: 120 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003003/0.9063, allocations: 2.449 MB / 0.6265 GB, free: 119.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.9063, allocations: 0 / 0.6265 GB, free: 119.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002079/0.9084, allocations: 1.697 MB / 0.6282 GB, free: 118.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.9101, allocations: 365 kB / 0.6286 GB, free: 118.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008723/0.9188, allocations: 4.91 MB / 0.6333 GB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002351/0.9212, allocations: 2.514 MB / 0.6358 GB, free: 116 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.9212, allocations: 0 / 0.6358 GB, free: 116 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat