Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",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.0009951/0.0009951, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.095/1.095, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008392/0.0008392, allocations: 96.08 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08659/0.08746, allocations: 56.91 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07778/0.1652, allocations: 51.48 MB / 394.7 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2196/0.3848, allocations: 111.9 MB / 0.4948 GB, free: 13.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.3851, allocations: 98.73 kB / 0.4949 GB, free: 13.91 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: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.3332/0.7183, allocations: 98.8 MB / 0.5914 GB, free: 70.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.7183, allocations: 5.938 kB / 0.5914 GB, free: 70.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0039/0.7222, allocations: 0.8709 MB / 0.5922 GB, free: 70.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006631/0.7289, allocations: 3.86 MB / 0.596 GB, free: 69.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.729, allocations: 133.8 kB / 0.5961 GB, free: 69.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004418/0.7294, allocations: 239.3 kB / 0.5963 GB, free: 69.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00575/0.7352, allocations: 4.201 MB / 0.6004 GB, free: 69.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006176/0.7414, allocations: 4.683 MB / 0.605 GB, free: 69.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.988e-05/0.7415, allocations: 6.25 kB / 0.605 GB, free: 69.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003023/0.7418, allocations: 6.688 kB / 0.605 GB, free: 69.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.7419, allocations: 171.2 kB / 0.6052 GB, free: 69.22 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01865/0.7606, allocations: 16.4 MB / 0.6212 GB, free: 65.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.7621, allocations: 1.483 MB / 0.6227 GB, free: 64.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001997/0.7641, allocations: 1.874 MB / 0.6245 GB, free: 63.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005479/0.7696, allocations: 4.621 MB / 0.629 GB, free: 61.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00151/0.7711, allocations: 1.435 MB / 0.6304 GB, free: 60.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=223): time 3.256e-06/0.7711, allocations: 0 / 0.6304 GB, free: 60.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=226): time 0.008935/0.7801, allocations: 6.52 MB / 0.6368 GB, free: 57.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.7802, allocations: 234.2 kB / 0.637 GB, free: 57.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.782, allocations: 1.726 MB / 0.6387 GB, free: 56.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.7821, allocations: 25.7 kB / 0.6387 GB, free: 56.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006757/0.7828, allocations: 1.35 MB / 0.64 GB, free: 55.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003618/0.7832, allocations: 0.7051 MB / 0.6407 GB, free: 55.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.7833, allocations: 0 / 0.6407 GB, free: 55.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.803e-05/0.7834, allocations: 398.6 kB / 0.6411 GB, free: 54.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.7846, allocations: 1.106 MB / 0.6422 GB, free: 54.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.7861, allocations: 1.661 MB / 0.6438 GB, free: 53.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001856/0.788, allocations: 1.387 MB / 0.6451 GB, free: 52.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.657e-06/0.788, allocations: 12.84 kB / 0.6451 GB, free: 52.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.005351/0.7933, allocations: 3.644 MB / 0.6487 GB, free: 51.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.7934, allocations: 8.406 kB / 0.6487 GB, free: 51.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.7934, allocations: 13.44 kB / 0.6487 GB, free: 51.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.795, allocations: 0.7674 MB / 0.6495 GB, free: 51.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.7967, allocations: 437.8 kB / 0.6499 GB, free: 51.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008549/0.8053, allocations: 10.21 MB / 0.6599 GB, free: 43.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.8069, allocations: 96.05 kB / 0.66 GB, free: 43.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/0.8071, allocations: 98.3 kB / 0.66 GB, free: 43.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[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): 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%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003369/0.8075, allocations: 170.7 kB / 0.6602 GB, free: 43.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002958/0.8078, allocations: 241.5 kB / 0.6604 GB, free: 43.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005532/0.8133, allocations: 3.567 MB / 0.6639 GB, free: 42.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.819e-05/0.8133, allocations: 25.16 kB / 0.6639 GB, free: 42.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.8134, allocations: 11.25 kB / 0.664 GB, free: 42.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.8134, allocations: 11.11 kB / 0.664 GB, free: 42.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00953/0.8229, allocations: 7.282 MB / 0.6711 GB, free: 38.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.8229, allocations: 8.406 kB / 0.6711 GB, free: 38.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.824, allocations: 244.2 kB / 0.6713 GB, free: 38.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.8259, allocations: 0.9352 MB / 0.6722 GB, free: 38.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/0.8261, allocations: 24.3 kB / 0.6723 GB, free: 38.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.8372, allocations: 14.32 MB / 0.6862 GB, free: 27.84 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.8372, allocations: 4.125 kB / 0.6862 GB, free: 27.83 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006304/0.8435, allocations: 5.328 MB / 0.6915 GB, free: 25.38 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007758/0.8513, allocations: 7.452 MB / 0.6987 GB, free: 21.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009879/0.8523, allocations: 0.5858 MB / 0.6993 GB, free: 21.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003664/0.8527, allocations: 10.31 kB / 0.6993 GB, free: 21.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.8538, allocations: 82.94 kB / 0.6994 GB, free: 21.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003092/0.8542, allocations: 161.9 kB / 0.6995 GB, free: 21.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/0.8543, allocations: 60.31 kB / 0.6996 GB, free: 21.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001499/0.8558, allocations: 1.294 MB / 0.7009 GB, free: 20.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00288/0.8587, allocations: 0.763 MB / 0.7016 GB, free: 20.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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,(9,33.3%) 25,(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.0004755/0.8592, allocations: 375.2 kB / 0.702 GB, free: 20.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0038/0.863, allocations: 3.35 MB / 0.7052 GB, free: 18.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.863, allocations: 2.344 kB / 0.7052 GB, free: 18.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002555/0.8656, allocations: 2.321 MB / 0.7075 GB, free: 16.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/0.8674, allocations: 0.4934 MB / 0.708 GB, free: 16.06 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008819/0.8762, allocations: 6.207 MB / 0.7141 GB, free: 10.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002414/0.8787, allocations: 3.079 MB / 0.7171 GB, free: 8.098 MB / 442.7 MB Notification: Performance of SimCode: time 2.31e-07/0.8787, allocations: 0 / 0.7171 GB, free: 8.098 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat