Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_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.001007/0.001007, allocations: 97.89 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.00114/0.00114, allocations: 184.5 kB / 17.2 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.435/1.435, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.000283, allocations: 9.812 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1306, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006912/0.1375, allocations: 5.711 MB / 356.9 MB, free: 5.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004517/0.1421, allocations: 2.242 MB / 359.2 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008764/0.143, allocations: 15.94 kB / 359.2 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00133/0.1444, allocations: 426 kB / 359.6 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.1454, allocations: 394.9 kB / 360 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.1459, allocations: 131.8 kB / 360.1 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001813/0.1477, allocations: 0.8468 MB / 361 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005809/0.1483, allocations: 352.6 kB / 361.3 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005509/0.1489, allocations: 346.6 kB / 361.7 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000427/0.1493, allocations: 386.2 kB / 362 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.697e-05/0.1494, allocations: 48 kB / 362.1 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002553/0.1497, allocations: 95.91 kB / 362.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.1498, allocations: 143.3 kB / 362.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.15, allocations: 217.2 kB / 362.5 MB, free: 288 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.1512, allocations: 1.087 MB / 363.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1512, allocations: 0 / 363.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1512, allocations: 0 / 363.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.1512, allocations: 3.938 kB / 363.6 MB, free: 15.19 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001959/0.1532, allocations: 1.083 MB / 364.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.643e-05/0.1532, allocations: 12.03 kB / 364.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001742/0.1534, allocations: 134.9 kB / 364.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004215/0.1539, allocations: 130.7 kB / 365 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.1549, allocations: 0.6134 MB / 365.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.777e-05/0.155, allocations: 61.98 kB / 365.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.1551, allocations: 80 kB / 365.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.1564, allocations: 0.7715 MB / 366.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/0.1565, allocations: 7.891 kB / 366.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.397e-05/0.1566, allocations: 35.95 kB / 366.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.996e-05/0.1566, allocations: 23.94 kB / 366.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009733/0.1576, allocations: 0.5231 MB / 367.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004171/0.1617, allocations: 3.345 MB / 370.4 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005295/0.1623, allocations: 242.5 kB / 370.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.1624, allocations: 4 kB / 370.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.1624, allocations: 34.56 kB / 370.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.765e-06/0.1624, allocations: 0 / 370.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002391/0.1648, allocations: 1.077 MB / 371.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.1649, allocations: 85.34 kB / 371.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008605/0.1658, allocations: 0.6762 MB / 372.5 MB, free: 5.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.1658, allocations: 29.7 kB / 372.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004156/0.1662, allocations: 0.4904 MB / 373.1 MB, free: 5.266 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.666e-05/0.1663, allocations: 102.6 kB / 373.2 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.945e-05/0.1663, allocations: 12 kB / 373.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.1665, allocations: 374.8 kB / 373.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.1668, allocations: 137.2 kB / 373.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004848/0.1673, allocations: 418.2 kB / 374.1 MB, free: 4.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.1676, allocations: 199.9 kB / 374.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1677, allocations: 0 / 374.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009859/0.1686, allocations: 0.6184 MB / 374.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.1687, allocations: 12.52 kB / 374.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.1687, allocations: 20 kB / 374.9 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.1689, allocations: 32.86 kB / 375 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004439/0.1693, allocations: 143.7 kB / 375.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.1705, allocations: 1.288 MB / 376.4 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004865/0.1711, allocations: 39.91 kB / 376.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.1711, allocations: 31.98 kB / 376.5 MB, free: 1.578 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0004236/0.1715, allocations: 237.8 kB / 376.7 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.776e-05/0.1716, allocations: 75.05 kB / 376.8 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006622/0.1723, allocations: 341.9 kB / 377.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1723, allocations: 0 / 377.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1723, allocations: 4 kB / 377.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1723, allocations: 4.031 kB / 377.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.174, allocations: 1.081 MB / 378.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.174, allocations: 0 / 378.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.1743, allocations: 59.91 kB / 378.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.906e-05/0.1744, allocations: 24.84 kB / 378.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.1744, allocations: 8 kB / 378.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009415/0.1754, allocations: 1.28 MB / 379.6 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.1754, allocations: 15.95 kB / 379.6 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009145/0.1763, allocations: 0.6483 MB / 380.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.1766, allocations: 164.3 kB / 380.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/0.1766, allocations: 8 kB / 380.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002803/0.1769, allocations: 27.98 kB / 380.4 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.882e-05/0.177, allocations: 19.97 kB / 380.4 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.177, allocations: 8 kB / 380.4 MB, free: 13.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005773/0.1776, allocations: 467 kB / 380.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1776, allocations: 0 / 380.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007643/0.1784, allocations: 160 kB / 381.1 MB, free: 12.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (27): * Single equations (assignments): 26 * 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.001607/0.18, allocations: 1.7 MB / 382.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009173/0.1809, allocations: 469.4 kB / 383.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.181, allocations: 4 kB / 383.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.1813, allocations: 242.5 kB / 383.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008676/0.1822, allocations: 174 kB / 383.6 MB, free: 9.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009526/0.1917, allocations: 10.7 MB / 394.3 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005431/0.1923, allocations: 0.953 MB / 395.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004153/0.1927, allocations: 89.92 kB / 395.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/0.1931, allocations: 299.3 kB / 395.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1931, allocations: 0 / 395.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.2223, allocations: 13.56 MB / 409.2 MB, free: 336 kB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/0.2225, allocations: 206.8 kB / 409.4 MB, free: 96 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.028/2.251, allocations: 0 / 409.4 MB, free: 96 kB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat