Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",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.0009817/0.0009818, allocations: 98.05 kB / 16.3 MB, free: 5.992 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.001114/0.001114, allocations: 181.6 kB / 17.19 MB, free: 5.906 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.494/1.494, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002539, allocations: 6.406 kB / 300.8 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1109, allocations: 50.43 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.007135/0.1181, allocations: 6.385 MB / 357.6 MB, free: 5.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004451/0.1226, allocations: 2.481 MB / 360.1 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000625/0.1232, allocations: 27.88 kB / 360.1 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.1245, allocations: 465.8 kB / 360.6 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009531/0.1254, allocations: 474.6 kB / 361.1 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003692/0.1258, allocations: 143.8 kB / 361.2 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.1271, allocations: 1.014 MB / 362.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005789/0.1277, allocations: 427.2 kB / 362.6 MB, free: 152 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004603/0.1281, allocations: 418.3 kB / 363 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004558/0.1286, allocations: 465.8 kB / 363.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.864e-05/0.1287, allocations: 60 kB / 363.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002391/0.1289, allocations: 107.9 kB / 363.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.1291, allocations: 175.2 kB / 363.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.1293, allocations: 257.1 kB / 364.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1304, allocations: 1.277 MB / 365.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1304, allocations: 4 kB / 365.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1304, allocations: 0 / 365.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.1304, allocations: 3.938 kB / 365.4 MB, free: 13.4 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001921/0.1323, allocations: 1.235 MB / 366.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1324, allocations: 8.031 kB / 366.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.1326, allocations: 156 kB / 366.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004057/0.133, allocations: 162.4 kB / 366.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009662/0.134, allocations: 0.6795 MB / 367.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.381e-05/0.134, allocations: 70 kB / 367.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.1342, allocations: 99.91 kB / 367.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.1357, allocations: 0.9074 MB / 368.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/0.1357, allocations: 7.938 kB / 368.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.22e-05/0.1358, allocations: 43.95 kB / 368.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.199e-05/0.1358, allocations: 24 kB / 368.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.137, allocations: 0.6325 MB / 369.4 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004761/0.1418, allocations: 3.874 MB / 373.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.1423, allocations: 359.6 kB / 373.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.1424, allocations: 4.531 kB / 373.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.1424, allocations: 38.55 kB / 373.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.284e-06/0.1424, allocations: 4 kB / 373.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002224/0.1447, allocations: 1.223 MB / 374.9 MB, free: 3.406 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.1447, allocations: 81.11 kB / 374.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009524/0.1457, allocations: 0.7705 MB / 375.7 MB, free: 2.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.1457, allocations: 29.7 kB / 375.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003932/0.1461, allocations: 0.564 MB / 376.3 MB, free: 1.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1462, allocations: 134.2 kB / 376.4 MB, free: 1.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-05/0.1463, allocations: 16 kB / 376.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1464, allocations: 330 kB / 376.8 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.1468, allocations: 153.9 kB / 376.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000509/0.1473, allocations: 460 kB / 377.4 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.1477, allocations: 227.8 kB / 377.6 MB, free: 488 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1477, allocations: 7.938 kB / 377.6 MB, free: 480 kB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001083/0.1488, allocations: 0.693 MB / 378.3 MB, free: 15.76 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.1488, allocations: 12.09 kB / 378.3 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.1488, allocations: 12 kB / 378.3 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.149, allocations: 40.78 kB / 378.4 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000473/0.1495, allocations: 155.8 kB / 378.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009879/0.1505, allocations: 1.295 MB / 379.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.151, allocations: 40.14 kB / 379.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/0.151, allocations: 36 kB / 379.9 MB, free: 14.04 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * 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: 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.0004189/0.1514, allocations: 253.6 kB / 380.1 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.1515, allocations: 82.97 kB / 380.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006955/0.1522, allocations: 386.3 kB / 380.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.1523, allocations: 7.938 kB / 380.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1523, allocations: 7.938 kB / 380.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1523, allocations: 0 / 380.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.154, allocations: 1.246 MB / 381.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.154, allocations: 0 / 381.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.1543, allocations: 75.89 kB / 381.9 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.074e-05/0.1544, allocations: 28.78 kB / 382 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.1544, allocations: 12.22 kB / 382 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008828/0.1553, allocations: 1.276 MB / 383.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.1554, allocations: 12.05 kB / 383.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.1564, allocations: 0.729 MB / 384 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.1566, allocations: 184 kB / 384.2 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.048e-05/0.1567, allocations: 12 kB / 384.2 MB, free: 9.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003354/0.1571, allocations: 27.97 kB / 384.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.1571, allocations: 23.97 kB / 384.2 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.1572, allocations: 16 kB / 384.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006282/0.1578, allocations: 0.5146 MB / 384.8 MB, free: 8.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1578, allocations: 0 / 384.8 MB, free: 8.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007134/0.1585, allocations: 188 kB / 384.9 MB, free: 8.641 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * 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.001507/0.16, allocations: 1.763 MB / 386.7 MB, free: 6.801 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009868/0.161, allocations: 0.5154 MB / 387.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1611, allocations: 0 / 387.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004093/0.1615, allocations: 275.9 kB / 387.5 MB, free: 5.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008984/0.1624, allocations: 204.2 kB / 387.7 MB, free: 5.793 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.173, allocations: 11.73 MB / 399.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006901/0.1737, allocations: 1.02 MB / 400.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000461/0.1742, allocations: 98.75 kB / 400.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/0.1746, allocations: 367.3 kB / 400.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of SimCode: time 1.242e-06/0.1746, allocations: 0 / 400.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04549/0.2201, allocations: 15.84 MB / 416.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002665/0.2204, allocations: 213.2 kB / 416.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.256/2.477, allocations: 0 / 416.9 MB, free: 8.406 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat