Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_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 4.0.0+maint.om/package.mo): time 0.0009393/0.0009393, allocations: 182.8 kB / 8.135 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.103/1.103, allocations: 221.4 MB / 229.9 MB, free: 3.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009506/0.0009507, allocations: 89.33 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09291/0.09389, allocations: 55.83 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.274, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0923/0.3663, allocations: 95.18 MB / 482.2 MB, free: 7.562 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.3666, allocations: 87.89 kB / 482.3 MB, free: 7.477 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.243/0.6096, allocations: 45.75 MB / 0.5156 GB, free: 90.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.6096, allocations: 8.875 kB / 0.5157 GB, free: 90.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/0.6107, allocations: 288.5 kB / 0.5159 GB, free: 90.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002529/0.6133, allocations: 1.21 MB / 0.5171 GB, free: 89.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.6133, allocations: 54.62 kB / 0.5172 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.6136, allocations: 100.1 kB / 0.5173 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001642/0.6152, allocations: 0.8717 MB / 0.5181 GB, free: 89.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.6172, allocations: 1.214 MB / 0.5193 GB, free: 88.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.76e-05/0.6173, allocations: 12.61 kB / 0.5193 GB, free: 88.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.813e-05/0.6174, allocations: 3.703 kB / 0.5193 GB, free: 88.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.6174, allocations: 43.94 kB / 0.5194 GB, free: 88.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006554/0.624, allocations: 6.122 MB / 0.5253 GB, free: 82.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004176/0.6244, allocations: 319.6 kB / 0.5256 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005991/0.625, allocations: 407.2 kB / 0.526 GB, free: 81.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.6251, allocations: 12.64 kB / 0.526 GB, free: 81.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.6251, allocations: 39.22 kB / 0.5261 GB, free: 81.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.264e-06/0.6251, allocations: 4 kB / 0.5261 GB, free: 81.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.002517/0.6276, allocations: 1.66 MB / 0.5277 GB, free: 79.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.6277, allocations: 115.5 kB / 0.5278 GB, free: 79.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.6287, allocations: 0.9013 MB / 0.5287 GB, free: 78.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.6288, allocations: 25.7 kB / 0.5287 GB, free: 78.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002344/0.629, allocations: 0.6917 MB / 0.5294 GB, free: 78.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.6291, allocations: 248.3 kB / 0.5296 GB, free: 77.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.559e-05/0.6292, allocations: 4 kB / 0.5296 GB, free: 77.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.035e-05/0.6293, allocations: 345.9 kB / 0.53 GB, free: 77.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.6296, allocations: 230.6 kB / 0.5302 GB, free: 77.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.6301, allocations: 0.6658 MB / 0.5308 GB, free: 76.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004606/0.6306, allocations: 346.9 kB / 0.5312 GB, free: 76.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/0.6306, allocations: 8 kB / 0.5312 GB, free: 76.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001623/0.6322, allocations: 1.06 MB / 0.5322 GB, free: 75.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.6322, allocations: 4 kB / 0.5322 GB, free: 75.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.6323, allocations: 16 kB / 0.5322 GB, free: 75.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000396/0.6327, allocations: 131 kB / 0.5324 GB, free: 74.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008581/0.6335, allocations: 267.5 kB / 0.5326 GB, free: 74.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.6359, allocations: 4.044 MB / 0.5366 GB, free: 70.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008921/0.6368, allocations: 39.89 kB / 0.5366 GB, free: 70.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.673e-05/0.6369, allocations: 60.05 kB / 0.5367 GB, free: 70.18 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.637, allocations: 155.6 kB / 0.5368 GB, free: 70.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.6372, allocations: 126.4 kB / 0.5369 GB, free: 69.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.6384, allocations: 0.706 MB / 0.5376 GB, free: 69.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.6385, allocations: 8 kB / 0.5376 GB, free: 69.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6385, allocations: 0 / 0.5376 GB, free: 69.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.6385, allocations: 3.984 kB / 0.5376 GB, free: 69.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002856/0.6413, allocations: 2.011 MB / 0.5396 GB, free: 67.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.6414, allocations: 4 kB / 0.5396 GB, free: 67.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005923/0.642, allocations: 144.2 kB / 0.5397 GB, free: 66.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003086/0.6423, allocations: 110.4 kB / 0.5398 GB, free: 66.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.097e-05/0.6423, allocations: 15.89 kB / 0.5398 GB, free: 66.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002365/0.6447, allocations: 4.139 MB / 0.5439 GB, free: 62.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.6447, allocations: 4 kB / 0.5439 GB, free: 62.31 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001436/0.6462, allocations: 1.358 MB / 0.5452 GB, free: 60.82 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001802/0.648, allocations: 2.027 MB / 0.5472 GB, free: 58.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003424/0.6483, allocations: 255.5 kB / 0.5474 GB, free: 58.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.6485, allocations: 15.89 kB / 0.5475 GB, free: 58.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006456/0.6492, allocations: 35.97 kB / 0.5475 GB, free: 58.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.6493, allocations: 44.44 kB / 0.5475 GB, free: 58.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.6493, allocations: 20 kB / 0.5476 GB, free: 58.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007313/0.6501, allocations: 0.6595 MB / 0.5482 GB, free: 57.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001623/0.6517, allocations: 331.8 kB / 0.5485 GB, free: 57.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003623/0.6521, allocations: 350 kB / 0.5488 GB, free: 56.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.6532, allocations: 0.9672 MB / 0.5498 GB, free: 55.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6532, allocations: 0 / 0.5498 GB, free: 55.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005851/0.6538, allocations: 0.598 MB / 0.5504 GB, free: 55.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.655, allocations: 287.7 kB / 0.5506 GB, free: 55.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004072/0.6591, allocations: 2.292 MB / 0.5529 GB, free: 52.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008165/0.6599, allocations: 1.348 MB / 0.5542 GB, free: 51.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6599, allocations: 0 / 0.5542 GB, free: 51.3 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat