Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",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.00101/0.00101, allocations: 195.5 kB / 8.538 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.098/1.098, allocations: 225.5 MB / 234.4 MB, free: 14.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009511/0.0009511, allocations: 101.8 kB / 286.4 MB, free: 12.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08999/0.09097, allocations: 56.89 MB / 343.2 MB, free: 3.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.2578, allocations: 51.46 MB / 394.7 MB, free: 33.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1042/0.3619, allocations: 110.4 MB / 0.4932 GB, free: 2.605 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.3622, allocations: 89.33 kB / 0.4933 GB, free: 2.52 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.2417/0.6039, allocations: 54.91 MB / 0.547 GB, free: 61.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.6039, allocations: 8 kB / 0.547 GB, free: 61.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009503/0.6049, allocations: 376.2 kB / 0.5473 GB, free: 60.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.6076, allocations: 1.795 MB / 0.5491 GB, free: 59.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.6077, allocations: 64 kB / 0.5491 GB, free: 58.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002521/0.6079, allocations: 123.9 kB / 0.5493 GB, free: 58.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002658/0.6106, allocations: 1.98 MB / 0.5512 GB, free: 56.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002956/0.6136, allocations: 2.337 MB / 0.5535 GB, free: 54.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.117e-05/0.6136, allocations: 7.906 kB / 0.5535 GB, free: 54.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/0.6138, allocations: 4 kB / 0.5535 GB, free: 54.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.065e-05/0.6139, allocations: 91.91 kB / 0.5536 GB, free: 54.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009746/0.6236, allocations: 7.984 MB / 0.5614 GB, free: 46.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.6249, allocations: 0.9001 MB / 0.5622 GB, free: 45.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009406/0.6258, allocations: 0.9018 MB / 0.5631 GB, free: 44.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002414/0.6261, allocations: 134.9 kB / 0.5633 GB, free: 44.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.6261, allocations: 43.56 kB / 0.5633 GB, free: 44.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.927e-06/0.6261, allocations: 0 / 0.5633 GB, free: 44.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.007369/0.6335, allocations: 4.852 MB / 0.568 GB, free: 39.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.845e-05/0.6335, allocations: 64.72 kB / 0.5681 GB, free: 39.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.6353, allocations: 1.682 MB / 0.5697 GB, free: 37.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.679e-05/0.6354, allocations: 25.7 kB / 0.5698 GB, free: 37.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.6357, allocations: 0.7981 MB / 0.5705 GB, free: 36.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.6359, allocations: 449.2 kB / 0.571 GB, free: 36.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/0.636, allocations: 0 / 0.571 GB, free: 36.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.574e-05/0.636, allocations: 357.9 kB / 0.5713 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008045/0.6369, allocations: 0.7068 MB / 0.572 GB, free: 35.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008883/0.6378, allocations: 0.951 MB / 0.5729 GB, free: 34.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000988/0.6387, allocations: 0.8456 MB / 0.5738 GB, free: 33.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.6388, allocations: 0 / 0.5738 GB, free: 33.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003774/0.6425, allocations: 2.603 MB / 0.5763 GB, free: 30.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.6426, allocations: 4 kB / 0.5763 GB, free: 30.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.6426, allocations: 8 kB / 0.5763 GB, free: 30.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001938/0.6445, allocations: 0.8347 MB / 0.5771 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.6456, allocations: 275.6 kB / 0.5774 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008784/0.6544, allocations: 8.447 MB / 0.5856 GB, free: 20.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.6555, allocations: 55.94 kB / 0.5857 GB, free: 20.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.6556, allocations: 51.98 kB / 0.5857 GB, free: 20.67 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002208/0.6558, allocations: 134 kB / 0.5859 GB, free: 20.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002779/0.6561, allocations: 197.5 kB / 0.5861 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003511/0.6597, allocations: 2.392 MB / 0.5884 GB, free: 17.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.6597, allocations: 12 kB / 0.5884 GB, free: 17.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.6597, allocations: 11.98 kB / 0.5884 GB, free: 17.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.6597, allocations: 3.984 kB / 0.5884 GB, free: 17.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006538/0.6662, allocations: 4.66 MB / 0.593 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.6663, allocations: 4 kB / 0.593 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.6673, allocations: 207.9 kB / 0.5932 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.669, allocations: 0.7057 MB / 0.5939 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.984e-05/0.6691, allocations: 15.98 kB / 0.5939 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006749/0.6759, allocations: 7.844 MB / 0.6015 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6759, allocations: 0 / 0.6015 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004307/0.6802, allocations: 3.513 MB / 0.605 GB, free: 452 kB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00917/0.6894, allocations: 7.167 MB / 0.612 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008289/0.6902, allocations: 466.5 kB / 0.6124 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002822/0.6905, allocations: 11.98 kB / 0.6124 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009765/0.6915, allocations: 59.94 kB / 0.6125 GB, free: 8.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.6917, allocations: 77.19 kB / 0.6126 GB, free: 8.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.6918, allocations: 43.98 kB / 0.6126 GB, free: 8.527 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001701/0.6935, allocations: 1.286 MB / 0.6138 GB, free: 7.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002283/0.6958, allocations: 0.5313 MB / 0.6144 GB, free: 6.719 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009227/0.6968, allocations: 0.5089 MB / 0.6149 GB, free: 6.258 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003301/0.7001, allocations: 2.208 MB / 0.617 GB, free: 4.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.7001, allocations: 1.25 kB / 0.617 GB, free: 4.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002251/0.7023, allocations: 1.529 MB / 0.6185 GB, free: 2.426 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.7038, allocations: 321.1 kB / 0.6188 GB, free: 2.113 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006916/0.7107, allocations: 4.371 MB / 0.6231 GB, free: 13.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001977/0.7127, allocations: 2.142 MB / 0.6252 GB, free: 11.49 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7127, allocations: 0 / 0.6252 GB, free: 11.49 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat does not exist to compare? outputFormat=mat