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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009455/0.0009457, allocations: 92.53 kB / 16.3 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 187.5 kB / 17.2 MB, free: 5.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.2 MB / 241.1 MB, free: 14.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003739, allocations: 4 kB / 300.8 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1107, allocations: 50.4 MB / 351.2 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01123/0.122, allocations: 9.649 MB / 360.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006529/0.1286, allocations: 3.198 MB / 364.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002113/0.1308, allocations: 35.94 kB / 364.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.133, allocations: 0.5323 MB / 364.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.1361, allocations: 0.7595 MB / 365.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.1373, allocations: 251.7 kB / 365.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003793/0.1411, allocations: 1.704 MB / 367.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.1425, allocations: 0.6755 MB / 368 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.1439, allocations: 0.6848 MB / 368.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.1456, allocations: 0.7621 MB / 369.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002301/0.1458, allocations: 96 kB / 369.6 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004727/0.1463, allocations: 136 kB / 369.7 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000266/0.1466, allocations: 290.7 kB / 370 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005364/0.1471, allocations: 408.7 kB / 370.4 MB, free: 456 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2565/0.4036, allocations: 2.128 MB / 372.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.4037, allocations: 0 / 372.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.079e-06/0.4037, allocations: 0.625 kB / 372.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001569/0.4039, allocations: 4.359 kB / 372.5 MB, free: 12.53 MB / 302.1 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.006179/0.4101, allocations: 1.827 MB / 374.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.626e-05/0.4102, allocations: 8.75 kB / 374.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007064/0.4109, allocations: 221.7 kB / 374.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.412, allocations: 252.8 kB / 374.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003013/0.4151, allocations: 1.074 MB / 375.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.4152, allocations: 120.3 kB / 376 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.4155, allocations: 159.5 kB / 376.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003506/0.419, allocations: 1.466 MB / 377.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.188e-05/0.4191, allocations: 16.64 kB / 377.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/0.4193, allocations: 65.14 kB / 377.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.957e-05/0.4193, allocations: 38.5 kB / 377.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002653/0.422, allocations: 1.012 MB / 378.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/0.4321, allocations: 6.159 MB / 384.9 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.4336, allocations: 0.5575 MB / 385.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.264e-05/0.4336, allocations: 13.25 kB / 385.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.4337, allocations: 49.95 kB / 385.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.806e-06/0.4337, allocations: 0 / 385.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.006315/0.44, allocations: 2.271 MB / 387.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.17e-05/0.4401, allocations: 114.5 kB / 387.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002336/0.4425, allocations: 1.185 MB / 389.1 MB, free: 6.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.625e-05/0.4426, allocations: 41.92 kB / 389.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006578/0.4433, allocations: 0.8581 MB / 390 MB, free: 6.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002176/0.4435, allocations: 255.9 kB / 390.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.592e-05/0.4435, allocations: 22.5 kB / 390.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.4437, allocations: 351.5 kB / 390.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006139/0.4443, allocations: 270.6 kB / 390.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008359/0.4451, allocations: 0.716 MB / 391.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008059/0.4459, allocations: 388.4 kB / 392 MB, free: 4.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.446, allocations: 4 kB / 392 MB, free: 4.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.002757/0.4487, allocations: 1.215 MB / 393.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.4488, allocations: 11.81 kB / 393.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.262e-05/0.4488, allocations: 15.53 kB / 393.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004572/0.4493, allocations: 120.4 kB / 393.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008299/0.4501, allocations: 257.7 kB / 393.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002914/0.453, allocations: 4.191 MB / 397.8 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.4545, allocations: 61 kB / 397.8 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.4546, allocations: 52.69 kB / 397.9 MB, free: 372 kB / 302.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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.0008499/0.4555, allocations: 361.7 kB / 398.2 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.4557, allocations: 137.9 kB / 398.4 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.4575, allocations: 0.7923 MB / 399.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4575, allocations: 7.781 kB / 399.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4575, allocations: 5.25 kB / 399.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.4575, allocations: 3.984 kB / 399.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004374/0.4619, allocations: 2.178 MB / 401.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.4619, allocations: 3.375 kB / 401.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.4625, allocations: 132.7 kB / 401.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003836/0.4629, allocations: 109.7 kB / 401.6 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.711e-05/0.463, allocations: 26.45 kB / 401.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003913/0.4669, allocations: 4.313 MB / 405.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/0.4669, allocations: 15.78 kB / 406 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.4696, allocations: 1.43 MB / 407.4 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007599/0.4703, allocations: 257.8 kB / 407.6 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.4705, allocations: 19.12 kB / 407.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006079/0.4711, allocations: 40.22 kB / 407.7 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.4713, allocations: 61.44 kB / 407.8 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-05/0.4714, allocations: 23.78 kB / 407.8 MB, free: 8.246 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001357/0.4727, allocations: 0.7857 MB / 408.6 MB, free: 7.797 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4728, allocations: 2.812 kB / 408.6 MB, free: 7.797 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001537/0.4743, allocations: 319.6 kB / 408.9 MB, free: 7.766 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Number of clocked 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.003056/0.4774, allocations: 2.939 MB / 411.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.4795, allocations: 1.093 MB / 412.9 MB, free: 4.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.4795, allocations: 384 / 412.9 MB, free: 4.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.4806, allocations: 0.6914 MB / 413.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/0.4824, allocations: 321.9 kB / 413.9 MB, free: 3.023 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/0.5049, allocations: 18.5 MB / 432.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009385/0.5059, allocations: 1.248 MB / 433.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008732/0.5068, allocations: 171.4 kB / 433.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.5076, allocations: 0.6125 MB / 434.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5076, allocations: 0 / 434.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0674/0.575, allocations: 27.16 MB / 461.6 MB, free: 3.137 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002918/0.5754, allocations: 236.1 kB / 461.8 MB, free: 2.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.488/3.063, allocations: 0 / 461.8 MB, free: 2.891 MB / 366.1 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