Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.0009413/0.0009413, allocations: 183.4 kB / 8.475 MB, free: 1.879 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.045/1.045, allocations: 205.2 MB / 214.1 MB, free: 5.078 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.0009159/0.0009158, allocations: 78.31 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1491/0.15, allocations: 52.99 MB / 315.1 MB, free: 41.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06335/0.2134, allocations: 47.57 MB / 362.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2115/0.4249, allocations: 93.02 MB / 455.7 MB, free: 8.562 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.4251, allocations: 80.92 kB / 455.7 MB, free: 8.551 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.05684/0.482, allocations: 24.56 MB / 480.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.482, allocations: 12 kB / 480.3 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000483/0.4825, allocations: 154.5 kB / 480.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.4836, allocations: 0.6743 MB / 481.1 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.4837, allocations: 24 kB / 481.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-05/0.4838, allocations: 59.91 kB / 481.2 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007649/0.4845, allocations: 450.6 kB / 481.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.4856, allocations: 0.6574 MB / 482.3 MB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.4856, allocations: 7.906 kB / 482.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.971e-05/0.4857, allocations: 0 / 482.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.4857, allocations: 24 kB / 482.3 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003721/0.4894, allocations: 3.473 MB / 485.8 MB, free: 6.797 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.4896, allocations: 146.3 kB / 486 MB, free: 6.695 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.4898, allocations: 88.59 kB / 486 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.4898, allocations: 7.484 kB / 486.1 MB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.4898, allocations: 34.56 kB / 486.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.4899, allocations: 0 / 486.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001197/0.4911, allocations: 0.7857 MB / 486.9 MB, free: 5.855 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.4911, allocations: 84.61 kB / 487 MB, free: 5.758 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006007/0.4917, allocations: 0.5118 MB / 487.5 MB, free: 5.371 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.4918, allocations: 25.7 kB / 487.5 MB, free: 5.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/0.492, allocations: 437 kB / 487.9 MB, free: 4.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.155e-05/0.4921, allocations: 113.3 kB / 488 MB, free: 4.859 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.4921, allocations: 0 / 488 MB, free: 4.859 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.4923, allocations: 378.7 kB / 488.4 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.4924, allocations: 91.19 kB / 488.5 MB, free: 4.457 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003217/0.4928, allocations: 389.4 kB / 488.9 MB, free: 3.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.493, allocations: 165.5 kB / 489 MB, free: 3.883 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.493, allocations: 0 / 489 MB, free: 3.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007236/0.4938, allocations: 0.494 MB / 489.5 MB, free: 3.461 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.4938, allocations: 4 kB / 489.5 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.4938, allocations: 12 kB / 489.5 MB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001233/0.4939, allocations: 32.72 kB / 489.6 MB, free: 3.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/0.4944, allocations: 156.1 kB / 489.7 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008728/0.4953, allocations: 1.239 MB / 491 MB, free: 1.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004415/0.4958, allocations: 39.92 kB / 491 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.4958, allocations: 31.81 kB / 491 MB, free: 1.883 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.4959, allocations: 120.7 kB / 491.2 MB, free: 1.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.633e-05/0.496, allocations: 67.16 kB / 491.2 MB, free: 1.695 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004392/0.4964, allocations: 273.5 kB / 491.5 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.4965, allocations: 7.906 kB / 491.5 MB, free: 1.477 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4965, allocations: 0 / 491.5 MB, free: 1.477 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4965, allocations: 4 kB / 491.5 MB, free: 1.473 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.4976, allocations: 0.9355 MB / 492.4 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.4976, allocations: 0 / 492.4 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.4979, allocations: 71.83 kB / 492.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.458e-05/0.498, allocations: 24.28 kB / 492.5 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.4981, allocations: 0 / 492.5 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007318/0.4988, allocations: 1.231 MB / 493.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4988, allocations: 3.938 kB / 493.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005656/0.4994, allocations: 0.5726 MB / 494.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007739/0.5002, allocations: 1.048 MB / 495.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.5004, allocations: 163.3 kB / 495.5 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.598e-05/0.5004, allocations: 8 kB / 495.5 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.5008, allocations: 23.97 kB / 495.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.304e-05/0.5008, allocations: 19.83 kB / 495.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.5009, allocations: 15.98 kB / 495.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003913/0.5013, allocations: 394.1 kB / 496 MB, free: 13.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001174/0.5025, allocations: 167.4 kB / 496.2 MB, free: 13.1 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003589/0.5028, allocations: 288.9 kB / 496.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005537/0.5034, allocations: 389.6 kB / 496.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5034, allocations: 4.125 kB / 496.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.5037, allocations: 207.5 kB / 497 MB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/0.5044, allocations: 163.6 kB / 497.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.5062, allocations: 1.047 MB / 498.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005916/0.5068, allocations: 1.025 MB / 499.3 MB, free: 10.15 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5068, allocations: 0 / 499.3 MB, free: 10.15 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat