Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",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 trunk/package.mo): time 0.001136/0.001136, allocations: 204.2 kB / 8.536 MB, free: 464 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.087/1.087, allocations: 225.5 MB / 234.4 MB, free: 9.543 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009643/0.0009644, allocations: 97.81 kB / 286.3 MB, free: 5.859 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09045/0.09143, allocations: 56.9 MB / 343.2 MB, free: 12.95 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.2691, allocations: 51.45 MB / 394.7 MB, free: 47.71 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1058/0.375, allocations: 115.1 MB / 0.4979 GB, free: 8.793 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.3752, allocations: 91.94 kB / 0.4979 GB, free: 8.703 MB / 386.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.3063/0.6815, allocations: 90.13 MB / 0.586 GB, free: 88.21 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.6816, allocations: 8.781 kB / 0.586 GB, free: 88.21 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004028/0.6856, allocations: 0.7561 MB / 0.5867 GB, free: 87.95 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006786/0.6924, allocations: 3.414 MB / 0.5901 GB, free: 86.28 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.6925, allocations: 103.3 kB / 0.5901 GB, free: 86.28 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004243/0.693, allocations: 193.6 kB / 0.5903 GB, free: 86.27 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005133/0.6981, allocations: 3.202 MB / 0.5935 GB, free: 84.88 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005412/0.7035, allocations: 3.712 MB / 0.5971 GB, free: 83.02 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-05/0.7036, allocations: 5.312 kB / 0.5971 GB, free: 83.01 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002663/0.7039, allocations: 6.75 kB / 0.5971 GB, free: 83.01 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.704, allocations: 145.4 kB / 0.5972 GB, free: 82.99 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01511/0.7191, allocations: 13.02 MB / 0.61 GB, free: 71.83 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.7204, allocations: 1.13 MB / 0.6111 GB, free: 70.7 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/0.722, allocations: 1.388 MB / 0.6124 GB, free: 69.32 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005253/0.7273, allocations: 4.386 MB / 0.6167 GB, free: 64.84 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.7283, allocations: 0.9601 MB / 0.6176 GB, free: 63.84 MB / 418.8 MB Notification: Performance of pre-optimization done (n=161): time 2.655e-06/0.7284, allocations: 4 kB / 0.6176 GB, free: 63.84 MB / 418.8 MB Notification: Performance of matching and sorting (n=169): time 0.008541/0.7369, allocations: 5.67 MB / 0.6232 GB, free: 58.04 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.737, allocations: 227.6 kB / 0.6234 GB, free: 57.77 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.7384, allocations: 1.389 MB / 0.6247 GB, free: 56.38 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 8.441e-05/0.7385, allocations: 25.7 kB / 0.6248 GB, free: 56.35 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/0.7391, allocations: 1.188 MB / 0.6259 GB, free: 55.14 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002705/0.7393, allocations: 0.5504 MB / 0.6265 GB, free: 54.58 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.722e-05/0.7394, allocations: 0 / 0.6265 GB, free: 54.58 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 8.281e-05/0.7395, allocations: 389.8 kB / 0.6268 GB, free: 54.19 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009007/0.7404, allocations: 0.7342 MB / 0.6276 GB, free: 53.46 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.7415, allocations: 1.272 MB / 0.6288 GB, free: 51.96 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.743, allocations: 1.024 MB / 0.6298 GB, free: 50.94 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.743, allocations: 4 kB / 0.6298 GB, free: 50.94 MB / 418.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.00344/0.7464, allocations: 2.542 MB / 0.6323 GB, free: 48.36 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.7464, allocations: 7.906 kB / 0.6323 GB, free: 48.35 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.7465, allocations: 16 kB / 0.6323 GB, free: 48.34 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006356/0.7471, allocations: 285.5 kB / 0.6326 GB, free: 48.05 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.7487, allocations: 427.3 kB / 0.633 GB, free: 47.63 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.7525, allocations: 5.507 MB / 0.6384 GB, free: 41.79 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.7536, allocations: 56.03 kB / 0.6384 GB, free: 41.73 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.7538, allocations: 80.05 kB / 0.6385 GB, free: 41.65 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 221 * 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%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002291/0.754, allocations: 164.2 kB / 0.6387 GB, free: 41.49 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.7542, allocations: 193.7 kB / 0.6388 GB, free: 41.3 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003643/0.7579, allocations: 2.445 MB / 0.6412 GB, free: 38.8 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.7579, allocations: 16 kB / 0.6412 GB, free: 38.78 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.7579, allocations: 8 kB / 0.6413 GB, free: 38.77 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.7579, allocations: 7.969 kB / 0.6413 GB, free: 38.77 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006537/0.7645, allocations: 5.419 MB / 0.6466 GB, free: 33.23 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.7645, allocations: 0 / 0.6466 GB, free: 33.23 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009631/0.7655, allocations: 227.7 kB / 0.6468 GB, free: 33.01 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.7665, allocations: 455.9 kB / 0.6472 GB, free: 32.55 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-05/0.7666, allocations: 35.88 kB / 0.6472 GB, free: 32.51 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006805/0.7735, allocations: 9.555 MB / 0.6566 GB, free: 22.39 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7735, allocations: 0 / 0.6566 GB, free: 22.39 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00414/0.7776, allocations: 3.511 MB / 0.66 GB, free: 18.79 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005201/0.7828, allocations: 4.974 MB / 0.6649 GB, free: 13.73 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006717/0.7835, allocations: 454.5 kB / 0.6653 GB, free: 13.27 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/0.7838, allocations: 15.98 kB / 0.6653 GB, free: 13.25 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008949/0.7847, allocations: 39.97 kB / 0.6653 GB, free: 13.21 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.7849, allocations: 85.86 kB / 0.6654 GB, free: 13.13 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.616e-05/0.785, allocations: 47.98 kB / 0.6655 GB, free: 13.08 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.001144/0.7861, allocations: 1.041 MB / 0.6665 GB, free: 12.05 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.002428/0.7886, allocations: 0.6287 MB / 0.6671 GB, free: 11.42 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (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,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 13,(1,100.0%) 8,(1,100.0%) 3,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008695/0.7894, allocations: 0.5679 MB / 0.6677 GB, free: 10.95 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.7919, allocations: 2.271 MB / 0.6699 GB, free: 8.629 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7919, allocations: 4 kB / 0.6699 GB, free: 8.625 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001736/0.7937, allocations: 1.524 MB / 0.6714 GB, free: 7.059 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.7952, allocations: 366.9 kB / 0.6717 GB, free: 6.703 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007159/0.8024, allocations: 4.802 MB / 0.6764 GB, free: 1.836 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002199/0.8046, allocations: 2.578 MB / 0.6789 GB, free: 15.23 MB / 434.8 MB Notification: Performance of SimCode: time 3.31e-07/0.8046, allocations: 4 kB / 0.6789 GB, free: 15.22 MB / 434.8 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat