Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",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.001779/0.001779, allocations: 183.9 kB / 8.135 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.229/1.229, allocations: 221.4 MB / 230 MB, free: 3.258 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.0009475/0.0009475, allocations: 98.47 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08971/0.09069, allocations: 55.83 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.2663, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.24/0.5063, allocations: 119.6 MB / 0.4948 GB, free: 103.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.5065, allocations: 98.39 kB / 0.4949 GB, free: 103.2 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.3544/0.8609, allocations: 162.9 MB / 0.654 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.861, allocations: 8 kB / 0.654 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1184/0.9794, allocations: 0.9317 MB / 0.6549 GB, free: 95.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008266/0.9877, allocations: 3.813 MB / 0.6586 GB, free: 94.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.9879, allocations: 136 kB / 0.6587 GB, free: 94.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005156/0.9884, allocations: 238.7 kB / 0.659 GB, free: 94.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00614/0.9946, allocations: 3.851 MB / 0.6627 GB, free: 94.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006558/1.001, allocations: 4.479 MB / 0.6671 GB, free: 94.15 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.963e-05/1.001, allocations: 7.594 kB / 0.6671 GB, free: 94.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003357/1.002, allocations: 3.125 kB / 0.6671 GB, free: 94.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001167/1.002, allocations: 172.2 kB / 0.6673 GB, free: 94.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02072/1.022, allocations: 16.29 MB / 0.6832 GB, free: 90.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/1.024, allocations: 1.282 MB / 0.6844 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002133/1.026, allocations: 1.678 MB / 0.6861 GB, free: 90.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007034/1.033, allocations: 5.198 MB / 0.6912 GB, free: 89.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/1.033, allocations: 55.28 kB / 0.6912 GB, free: 89.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 3.306e-06/1.033, allocations: 0 / 0.6912 GB, free: 89.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.008343/1.042, allocations: 5.234 MB / 0.6963 GB, free: 88.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.472e-05/1.042, allocations: 76.66 kB / 0.6964 GB, free: 88.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/1.044, allocations: 1.657 MB / 0.698 GB, free: 87.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/1.044, allocations: 28.44 kB / 0.698 GB, free: 87.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005022/1.044, allocations: 1.475 MB / 0.6995 GB, free: 87.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/1.045, allocations: 0.6366 MB / 0.7001 GB, free: 86.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/1.045, allocations: 0 / 0.7001 GB, free: 86.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/1.045, allocations: 403.6 kB / 0.7005 GB, free: 86.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/1.046, allocations: 0.9003 MB / 0.7014 GB, free: 86.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/1.048, allocations: 1.576 MB / 0.7029 GB, free: 85.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/1.049, allocations: 1.232 MB / 0.7041 GB, free: 85.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/1.049, allocations: 6.562 kB / 0.7041 GB, free: 85.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.004405/1.054, allocations: 2.894 MB / 0.7069 GB, free: 85.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/1.054, allocations: 3.5 kB / 0.7069 GB, free: 85.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/1.054, allocations: 28 kB / 0.707 GB, free: 85.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003054/1.054, allocations: 124.2 kB / 0.7071 GB, free: 85.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/1.057, allocations: 0.6013 MB / 0.7077 GB, free: 85.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/1.058, allocations: 1.725 MB / 0.7094 GB, free: 83.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/1.06, allocations: 79.3 kB / 0.7094 GB, free: 83.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/1.06, allocations: 103.1 kB / 0.7095 GB, free: 83.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (299): * Single equations (assignments): 297 * 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: 1 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003167/1.06, allocations: 167.8 kB / 0.7097 GB, free: 83.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003221/1.061, allocations: 238.6 kB / 0.7099 GB, free: 83.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00432/1.065, allocations: 2.647 MB / 0.7125 GB, free: 83.31 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/1.065, allocations: 19.06 kB / 0.7125 GB, free: 83.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/1.065, allocations: 7.562 kB / 0.7125 GB, free: 83.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/1.065, allocations: 10.88 kB / 0.7125 GB, free: 83.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008773/1.074, allocations: 5.932 MB / 0.7183 GB, free: 82.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.485e-06/1.074, allocations: 3.625 kB / 0.7183 GB, free: 82.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001708/1.075, allocations: 361.5 kB / 0.7187 GB, free: 82.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00083/1.076, allocations: 316.2 kB / 0.719 GB, free: 82.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001231/1.076, allocations: 19.17 kB / 0.719 GB, free: 82.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004923/1.081, allocations: 5.985 MB / 0.7248 GB, free: 78.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.081, allocations: 3.375 kB / 0.7248 GB, free: 78.59 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005281/1.087, allocations: 4.065 MB / 0.7288 GB, free: 76.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01017/1.097, allocations: 8.38 MB / 0.737 GB, free: 72.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/1.098, allocations: 0.5111 MB / 0.7375 GB, free: 72.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004058/1.098, allocations: 9.312 kB / 0.7375 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/1.1, allocations: 68.5 kB / 0.7376 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/1.1, allocations: 115.5 kB / 0.7377 GB, free: 72.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/1.1, allocations: 47.56 kB / 0.7377 GB, free: 72.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001809/1.102, allocations: 1.237 MB / 0.7389 GB, free: 71.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002982/1.105, allocations: 0.6726 MB / 0.7396 GB, free: 71.53 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 162 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005353/1.106, allocations: 393.3 kB / 0.74 GB, free: 71.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003183/1.109, allocations: 2.418 MB / 0.7423 GB, free: 70.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/1.109, allocations: 3.5 kB / 0.7423 GB, free: 70.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00179/1.111, allocations: 1.463 MB / 0.7438 GB, free: 69.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/1.112, allocations: 418.5 kB / 0.7442 GB, free: 69.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00982/1.122, allocations: 5.736 MB / 0.7498 GB, free: 67.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00269/1.125, allocations: 2.948 MB / 0.7526 GB, free: 66.42 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/1.125, allocations: 0 / 0.7526 GB, free: 66.42 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat