Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009818/0.0009818, allocations: 175 kB / 8.477 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.051/1.051, allocations: 205.2 MB / 214.1 MB, free: 5.152 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.0008607/0.0008607, allocations: 94.19 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1548/0.1557, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06615/0.2219, allocations: 47.58 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2282/0.4501, allocations: 94.02 MB / 456.7 MB, free: 7.934 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.4503, allocations: 79.55 kB / 456.7 MB, free: 7.922 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.12/0.5703, allocations: 45.74 MB / 0.4907 GB, free: 8.516 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.5704, allocations: 8 kB / 0.4907 GB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001288/0.5717, allocations: 297.8 kB / 0.491 GB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002755/0.5744, allocations: 1.212 MB / 0.4922 GB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.494e-05/0.5745, allocations: 48 kB / 0.4922 GB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/0.5747, allocations: 103.9 kB / 0.4923 GB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001805/0.5765, allocations: 0.8692 MB / 0.4932 GB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002073/0.5786, allocations: 1.226 MB / 0.4944 GB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.99e-05/0.5787, allocations: 7.906 kB / 0.4944 GB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.389e-05/0.5788, allocations: 0 / 0.4944 GB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.457e-05/0.5788, allocations: 36 kB / 0.4944 GB, free: 4.598 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008187/0.587, allocations: 6.136 MB / 0.5004 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004882/0.5875, allocations: 315 kB / 0.5007 GB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006898/0.5882, allocations: 403.3 kB / 0.5011 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.827e-05/0.5883, allocations: 8.656 kB / 0.5011 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.5883, allocations: 43.22 kB / 0.5011 GB, free: 13.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.474e-06/0.5884, allocations: 0 / 0.5011 GB, free: 13.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.003046/0.5914, allocations: 1.661 MB / 0.5028 GB, free: 11.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.5915, allocations: 115.5 kB / 0.5029 GB, free: 11.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.5927, allocations: 0.8936 MB / 0.5037 GB, free: 10.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.5927, allocations: 25.7 kB / 0.5038 GB, free: 10.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000394/0.5931, allocations: 0.6878 MB / 0.5044 GB, free: 9.902 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.5933, allocations: 248.3 kB / 0.5047 GB, free: 9.656 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.5934, allocations: 0 / 0.5047 GB, free: 9.656 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.5935, allocations: 357.9 kB / 0.505 GB, free: 9.301 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.5939, allocations: 226.6 kB / 0.5052 GB, free: 9.078 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006451/0.5946, allocations: 0.6697 MB / 0.5059 GB, free: 8.191 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005363/0.5951, allocations: 346.9 kB / 0.5062 GB, free: 7.852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.5951, allocations: 4 kB / 0.5062 GB, free: 7.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001854/0.597, allocations: 1.067 MB / 0.5073 GB, free: 6.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.597, allocations: 4 kB / 0.5073 GB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.597, allocations: 20.59 kB / 0.5073 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004559/0.5975, allocations: 114.5 kB / 0.5074 GB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009728/0.5985, allocations: 275.5 kB / 0.5077 GB, free: 6.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003243/0.6017, allocations: 4.041 MB / 0.5116 GB, free: 1.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009831/0.6027, allocations: 47.94 kB / 0.5116 GB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.372e-05/0.6028, allocations: 52 kB / 0.5117 GB, free: 1.863 MB / 362.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.0002008/0.6031, allocations: 148.4 kB / 0.5118 GB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.6032, allocations: 130.5 kB / 0.512 GB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.6047, allocations: 0.7061 MB / 0.5127 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.6047, allocations: 11.91 kB / 0.5127 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.6047, allocations: 0 / 0.5127 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.6047, allocations: 7.984 kB / 0.5127 GB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003319/0.608, allocations: 2.015 MB / 0.5146 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.6081, allocations: 4.469 kB / 0.5146 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006326/0.6087, allocations: 139.8 kB / 0.5148 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003471/0.6091, allocations: 110.5 kB / 0.5149 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.972e-05/0.6091, allocations: 8 kB / 0.5149 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003503/0.6126, allocations: 4.142 MB / 0.5189 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.6126, allocations: 8.156 kB / 0.5189 GB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001943/0.6146, allocations: 1.354 MB / 0.5203 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002459/0.6171, allocations: 2.019 MB / 0.5222 GB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005163/0.6176, allocations: 263.4 kB / 0.5225 GB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.6178, allocations: 7.938 kB / 0.5225 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006615/0.6185, allocations: 39.97 kB / 0.5225 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.386e-05/0.6186, allocations: 44.34 kB / 0.5226 GB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.456e-05/0.6186, allocations: 28.23 kB / 0.5226 GB, free: 5.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009912/0.6196, allocations: 0.6595 MB / 0.5232 GB, free: 5.246 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001859/0.6215, allocations: 324 kB / 0.5236 GB, free: 4.93 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.0005019/0.622, allocations: 353 kB / 0.5239 GB, free: 4.586 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.6236, allocations: 0.963 MB / 0.5248 GB, free: 3.594 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.6236, allocations: 0 / 0.5248 GB, free: 3.594 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008096/0.6244, allocations: 0.606 MB / 0.5254 GB, free: 2.961 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.626, allocations: 278.9 kB / 0.5257 GB, free: 2.688 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005187/0.6312, allocations: 2.292 MB / 0.5279 GB, free: 308 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/0.6325, allocations: 1.352 MB / 0.5293 GB, free: 14.92 MB / 394.7 MB Notification: Performance of SimCode: time 8.22e-07/0.6325, allocations: 3.938 kB / 0.5293 GB, free: 14.92 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat