Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.00136/0.00136, allocations: 203.5 kB / 8.539 MB, free: 1.719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.148/1.148, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000941/0.0009409, allocations: 91.59 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09279/0.09376, allocations: 56.91 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.1756, allocations: 51.48 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2379/0.4136, allocations: 120.7 MB / 0.5033 GB, free: 5.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.4139, allocations: 94 kB / 0.5034 GB, free: 5.098 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.5105/0.9244, allocations: 168.9 MB / 0.6683 GB, free: 42.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.9244, allocations: 9.781 kB / 0.6683 GB, free: 42.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004732/0.9291, allocations: 0.9718 MB / 0.6693 GB, free: 42.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007222/0.9364, allocations: 3.849 MB / 0.673 GB, free: 40.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.9365, allocations: 136.5 kB / 0.6731 GB, free: 40.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004676/0.937, allocations: 234.1 kB / 0.6734 GB, free: 40.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005861/0.9428, allocations: 3.857 MB / 0.6771 GB, free: 38.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006154/0.949, allocations: 4.486 MB / 0.6815 GB, free: 36.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-05/0.9491, allocations: 6.906 kB / 0.6815 GB, free: 36.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/0.9494, allocations: 7.188 kB / 0.6815 GB, free: 36.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.9495, allocations: 174.9 kB / 0.6817 GB, free: 36.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01927/0.9688, allocations: 16.37 MB / 0.6977 GB, free: 24.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.9703, allocations: 1.292 MB / 0.699 GB, free: 23.42 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002158/0.9725, allocations: 1.706 MB / 0.7006 GB, free: 22.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006969/0.9795, allocations: 5.78 MB / 0.7063 GB, free: 18.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.9795, allocations: 52.56 kB / 0.7063 GB, free: 18.15 MB / 442.7 MB Notification: Performance of pre-optimization done (n=192): time 3.015e-06/0.9795, allocations: 4 kB / 0.7063 GB, free: 18.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=195): time 0.007758/0.9873, allocations: 5.237 MB / 0.7114 GB, free: 12.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/0.9873, allocations: 77.41 kB / 0.7115 GB, free: 12.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.9893, allocations: 1.673 MB / 0.7131 GB, free: 11.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.9894, allocations: 33.64 kB / 0.7132 GB, free: 10.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004537/0.9898, allocations: 1.473 MB / 0.7146 GB, free: 9.492 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003343/0.9902, allocations: 0.6311 MB / 0.7152 GB, free: 8.852 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.9903, allocations: 0 / 0.7152 GB, free: 8.852 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.9904, allocations: 398.8 kB / 0.7156 GB, free: 8.457 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.9916, allocations: 0.8989 MB / 0.7165 GB, free: 7.555 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.9929, allocations: 1.572 MB / 0.718 GB, free: 5.672 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.9947, allocations: 1.232 MB / 0.7192 GB, free: 4.441 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.377e-06/0.9947, allocations: 8 kB / 0.7192 GB, free: 4.434 MB / 442.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.003969/0.9987, allocations: 2.904 MB / 0.7221 GB, free: 1.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.9987, allocations: 7.125 kB / 0.7221 GB, free: 1.496 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.9988, allocations: 20 kB / 0.7221 GB, free: 1.477 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.999, allocations: 129.7 kB / 0.7222 GB, free: 1.344 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00223/1.001, allocations: 0.597 MB / 0.7228 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/1.003, allocations: 1.723 MB / 0.7245 GB, free: 14.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/1.004, allocations: 75.86 kB / 0.7245 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/1.004, allocations: 104 kB / 0.7246 GB, free: 14.73 MB / 458.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.0003138/1.005, allocations: 172.2 kB / 0.7248 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003184/1.005, allocations: 237.1 kB / 0.725 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004525/1.01, allocations: 2.647 MB / 0.7276 GB, free: 11.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/1.01, allocations: 20 kB / 0.7276 GB, free: 11.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/1.01, allocations: 8 kB / 0.7277 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/1.01, allocations: 15.86 kB / 0.7277 GB, free: 11.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009096/1.019, allocations: 5.918 MB / 0.7334 GB, free: 5.551 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.019, allocations: 4.031 kB / 0.7334 GB, free: 5.547 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/1.02, allocations: 351.5 kB / 0.7338 GB, free: 5.203 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008365/1.021, allocations: 318.2 kB / 0.7341 GB, free: 4.883 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/1.021, allocations: 19.98 kB / 0.7341 GB, free: 4.863 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005783/1.027, allocations: 6 MB / 0.74 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.027, allocations: 0 / 0.74 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005563/1.033, allocations: 4.06 MB / 0.7439 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0105/1.043, allocations: 8.37 MB / 0.7521 GB, free: 1.844 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009844/1.044, allocations: 0.5098 MB / 0.7526 GB, free: 1.312 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/1.045, allocations: 11.98 kB / 0.7526 GB, free: 1.301 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/1.046, allocations: 67.94 kB / 0.7527 GB, free: 1.234 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/1.046, allocations: 117.7 kB / 0.7528 GB, free: 1.121 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/1.046, allocations: 51.98 kB / 0.7528 GB, free: 1.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.1233/1.169, allocations: 1.246 MB / 0.7541 GB, free: 132.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002898/1.172, allocations: 0.6826 MB / 0.7547 GB, free: 132.1 MB / 474.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.0005329/1.173, allocations: 427.2 kB / 0.7551 GB, free: 132 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002721/1.176, allocations: 2.417 MB / 0.7575 GB, free: 131.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.176, allocations: 0 / 0.7575 GB, free: 131.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/1.177, allocations: 1.459 MB / 0.7589 GB, free: 131.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001681/1.179, allocations: 421.8 kB / 0.7593 GB, free: 131.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008729/1.188, allocations: 5.756 MB / 0.7649 GB, free: 130.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002513/1.19, allocations: 2.953 MB / 0.7678 GB, free: 129.5 MB / 474.7 MB Notification: Performance of SimCode: time 3.61e-07/1.19, allocations: 0 / 0.7678 GB, free: 129.5 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat