Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 183.2 kB / 8.475 MB, free: 1.871 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.22/1.22, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0008991/0.0008991, allocations: 86.47 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1639/0.1649, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06233/0.2272, allocations: 47.58 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/0.4667, allocations: 118.7 MB / 481.3 MB, free: 6.566 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.467, allocations: 84.94 kB / 481.4 MB, free: 6.523 MB / 330.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.5072/0.9742, allocations: 162.6 MB / 0.6289 GB, free: 71.08 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.9742, allocations: 11 kB / 0.6289 GB, free: 71.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005656/0.9799, allocations: 0.9321 MB / 0.6298 GB, free: 70.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00879/0.9887, allocations: 3.819 MB / 0.6335 GB, free: 70.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.9889, allocations: 132.2 kB / 0.6336 GB, free: 70.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007148/0.9896, allocations: 240.4 kB / 0.6339 GB, free: 70.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006536/0.9962, allocations: 3.853 MB / 0.6376 GB, free: 70.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007265/1.003, allocations: 4.48 MB / 0.642 GB, free: 69.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.33e-05/1.004, allocations: 1.312 kB / 0.642 GB, free: 69.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003532/1.004, allocations: 3.531 kB / 0.642 GB, free: 69.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/1.004, allocations: 177.5 kB / 0.6422 GB, free: 69.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02303/1.027, allocations: 16.3 MB / 0.6581 GB, free: 62.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/1.029, allocations: 1.292 MB / 0.6593 GB, free: 61.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/1.031, allocations: 1.685 MB / 0.661 GB, free: 60.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008009/1.039, allocations: 5.179 MB / 0.6661 GB, free: 57.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/1.039, allocations: 55.97 kB / 0.6661 GB, free: 57.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 4.298e-06/1.039, allocations: 7.938 kB / 0.6661 GB, free: 57.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=194): time 0.009415/1.048, allocations: 5.208 MB / 0.6712 GB, free: 55.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/1.049, allocations: 71.66 kB / 0.6713 GB, free: 55.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002628/1.051, allocations: 1.678 MB / 0.6729 GB, free: 54.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001428/1.051, allocations: 25.7 kB / 0.6729 GB, free: 54.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006349/1.052, allocations: 1.471 MB / 0.6744 GB, free: 53.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004505/1.052, allocations: 0.6288 MB / 0.675 GB, free: 52.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/1.053, allocations: 0 / 0.675 GB, free: 52.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/1.053, allocations: 401.7 kB / 0.6754 GB, free: 52.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/1.054, allocations: 0.8929 MB / 0.6762 GB, free: 52.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/1.056, allocations: 1.58 MB / 0.6778 GB, free: 50.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002014/1.058, allocations: 1.228 MB / 0.679 GB, free: 50.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/1.058, allocations: 6.062 kB / 0.679 GB, free: 50.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.004652/1.062, allocations: 2.892 MB / 0.6818 GB, free: 48.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/1.062, allocations: 4 kB / 0.6818 GB, free: 48.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/1.063, allocations: 27.84 kB / 0.6818 GB, free: 48.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/1.063, allocations: 123.4 kB / 0.682 GB, free: 48.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/1.065, allocations: 0.6041 MB / 0.6825 GB, free: 47.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/1.066, allocations: 1.727 MB / 0.6842 GB, free: 46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/1.068, allocations: 70.08 kB / 0.6843 GB, free: 45.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/1.068, allocations: 107.4 kB / 0.6844 GB, free: 45.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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.0003141/1.069, allocations: 176.1 kB / 0.6846 GB, free: 45.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/1.069, allocations: 229.2 kB / 0.6848 GB, free: 45.44 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004245/1.073, allocations: 2.646 MB / 0.6874 GB, free: 43.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/1.073, allocations: 20 kB / 0.6874 GB, free: 43.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/1.073, allocations: 8 kB / 0.6874 GB, free: 43.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/1.073, allocations: 9.141 kB / 0.6874 GB, free: 43.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008423/1.082, allocations: 5.923 MB / 0.6932 GB, free: 38.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.393e-06/1.082, allocations: 4 kB / 0.6932 GB, free: 38.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/1.084, allocations: 350.8 kB / 0.6935 GB, free: 37.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008072/1.084, allocations: 324.8 kB / 0.6938 GB, free: 37.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/1.084, allocations: 15.7 kB / 0.6939 GB, free: 37.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004719/1.089, allocations: 5.993 MB / 0.6997 GB, free: 31.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.089, allocations: 0 / 0.6997 GB, free: 31.53 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005082/1.094, allocations: 4.082 MB / 0.7037 GB, free: 27.68 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009329/1.104, allocations: 8.365 MB / 0.7119 GB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001306/1.105, allocations: 0.5125 MB / 0.7124 GB, free: 19.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004341/1.105, allocations: 4 kB / 0.7124 GB, free: 19.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/1.107, allocations: 74.72 kB / 0.7124 GB, free: 19.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/1.107, allocations: 108.9 kB / 0.7125 GB, free: 19.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/1.107, allocations: 55.52 kB / 0.7126 GB, free: 19.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001769/1.109, allocations: 1.232 MB / 0.7138 GB, free: 18.11 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003/1.112, allocations: 0.6754 MB / 0.7145 GB, free: 17.44 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.0004999/1.112, allocations: 394.5 kB / 0.7148 GB, free: 17.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002966/1.115, allocations: 2.413 MB / 0.7172 GB, free: 14.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.115, allocations: 1.688 kB / 0.7172 GB, free: 14.83 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/1.117, allocations: 1.473 MB / 0.7186 GB, free: 13.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/1.119, allocations: 423.9 kB / 0.719 GB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/1.13, allocations: 5.731 MB / 0.7246 GB, free: 7.938 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003009/1.133, allocations: 2.953 MB / 0.7275 GB, free: 5.629 MB / 426.7 MB Notification: Performance of SimCode: time 8.02e-07/1.133, allocations: 0 / 0.7275 GB, free: 5.629 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat