Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001143/0.001143, allocations: 199.2 kB / 8.541 MB, free: 1.812 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.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008706/0.0008705, allocations: 91.78 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09516/0.09606, allocations: 56.9 MB / 343.2 MB, free: 8.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.1796, allocations: 51.47 MB / 394.7 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2301/0.4097, allocations: 99.58 MB / 494.3 MB, free: 9.793 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.41, allocations: 81.14 kB / 494.4 MB, free: 9.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.07727/0.4873, allocations: 29.53 MB / 0.5116 GB, free: 1.395 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.4873, allocations: 12 kB / 0.5116 GB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009669/0.4883, allocations: 210.3 kB / 0.5118 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.4899, allocations: 0.8088 MB / 0.5126 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.49, allocations: 32 kB / 0.5127 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.4902, allocations: 59.91 kB / 0.5127 GB, free: 240 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001179/0.4914, allocations: 0.5391 MB / 0.5132 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.4927, allocations: 0.763 MB / 0.514 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.4928, allocations: 7.906 kB / 0.514 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.397e-05/0.4928, allocations: 0 / 0.514 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.4929, allocations: 24.66 kB / 0.514 GB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005026/0.4979, allocations: 3.777 MB / 0.5177 GB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.4982, allocations: 184.9 kB / 0.5179 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005056/0.4987, allocations: 260.8 kB / 0.5181 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.4988, allocations: 8 kB / 0.5181 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.4988, allocations: 38.56 kB / 0.5182 GB, free: 10.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.044e-06/0.4988, allocations: 0 / 0.5182 GB, free: 10.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.002056/0.5009, allocations: 1.132 MB / 0.5193 GB, free: 9.215 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.5009, allocations: 81.55 kB / 0.5194 GB, free: 9.117 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007885/0.5017, allocations: 0.5976 MB / 0.5199 GB, free: 8.512 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.5018, allocations: 29.7 kB / 0.52 GB, free: 8.477 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.502, allocations: 469.8 kB / 0.5204 GB, free: 8.008 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.5022, allocations: 169.5 kB / 0.5206 GB, free: 7.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-05/0.5022, allocations: 0 / 0.5206 GB, free: 7.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.5023, allocations: 390.8 kB / 0.521 GB, free: 7.449 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002497/0.5026, allocations: 137.6 kB / 0.5211 GB, free: 7.316 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/0.503, allocations: 428.4 kB / 0.5215 GB, free: 6.766 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.5033, allocations: 220.6 kB / 0.5217 GB, free: 6.547 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.5033, allocations: 4 kB / 0.5217 GB, free: 6.543 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001161/0.5045, allocations: 0.6758 MB / 0.5224 GB, free: 5.855 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.5045, allocations: 4 kB / 0.5224 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.5045, allocations: 8 kB / 0.5224 GB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002984/0.5048, allocations: 109.9 kB / 0.5225 GB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005542/0.5054, allocations: 159.7 kB / 0.5226 GB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.5078, allocations: 2.904 MB / 0.5255 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005195/0.5084, allocations: 36.02 kB / 0.5255 GB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.5084, allocations: 32 kB / 0.5255 GB, free: 2.375 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.5085, allocations: 125.8 kB / 0.5257 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.5087, allocations: 82.97 kB / 0.5257 GB, free: 2.164 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008237/0.5095, allocations: 465.1 kB / 0.5262 GB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.5095, allocations: 4 kB / 0.5262 GB, free: 1.688 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.5095, allocations: 4 kB / 0.5262 GB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.5095, allocations: 7.922 kB / 0.5262 GB, free: 1.676 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.5113, allocations: 1.291 MB / 0.5275 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.5113, allocations: 0 / 0.5275 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.5117, allocations: 79.89 kB / 0.5275 GB, free: 236 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002459/0.5119, allocations: 93.83 kB / 0.5276 GB, free: 136 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.512, allocations: 4 kB / 0.5276 GB, free: 132 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.5142, allocations: 2.886 MB / 0.5304 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5142, allocations: 8.125 kB / 0.5305 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001102/0.5153, allocations: 0.8281 MB / 0.5313 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001451/0.5167, allocations: 1.383 MB / 0.5326 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.517, allocations: 192.2 kB / 0.5328 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.5171, allocations: 7.969 kB / 0.5328 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004513/0.5176, allocations: 27.89 kB / 0.5328 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.5177, allocations: 35.89 kB / 0.5329 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.5177, allocations: 16 kB / 0.5329 GB, free: 10.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000534/0.5182, allocations: 455.2 kB / 0.5333 GB, free: 9.871 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001462/0.5197, allocations: 208 kB / 0.5335 GB, free: 9.668 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003622/0.5201, allocations: 271.9 kB / 0.5338 GB, free: 9.398 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009677/0.5211, allocations: 0.6299 MB / 0.5344 GB, free: 8.754 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5211, allocations: 4.125 kB / 0.5344 GB, free: 8.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005807/0.5217, allocations: 411.2 kB / 0.5348 GB, free: 8.328 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008297/0.5225, allocations: 175.5 kB / 0.535 GB, free: 8.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.5248, allocations: 1.262 MB / 0.5362 GB, free: 6.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006942/0.5256, allocations: 1.097 MB / 0.5373 GB, free: 5.719 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5256, allocations: 0 / 0.5373 GB, free: 5.719 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat