Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_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.00107/0.00107, allocations: 89.23 kB / 16.31 MB, free: 5.676 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.00144/0.00144, allocations: 177.7 kB / 17.2 MB, free: 5.598 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.346/1.346, allocations: 223.2 MB / 241.2 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003968, allocations: 8 kB / 300.9 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1532, allocations: 50.41 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009208/0.1624, allocations: 7.123 MB / 358.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005832/0.1683, allocations: 2.464 MB / 360.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00139/0.1698, allocations: 23.94 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001936/0.1717, allocations: 465.4 kB / 361.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001606/0.1734, allocations: 385.1 kB / 361.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006288/0.174, allocations: 163.8 kB / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002202/0.1762, allocations: 1.33 MB / 363.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007504/0.177, allocations: 415.2 kB / 363.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007368/0.1777, allocations: 453.9 kB / 364.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005978/0.1783, allocations: 0.4977 MB / 364.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.1784, allocations: 64 kB / 364.7 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003091/0.1788, allocations: 104 kB / 364.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.1789, allocations: 191.1 kB / 365 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.1792, allocations: 257.1 kB / 365.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.1806, allocations: 1.355 MB / 366.6 MB, free: 4.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.1807, allocations: 0 / 366.6 MB, free: 4.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1807, allocations: 0 / 366.6 MB, free: 4.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.1807, allocations: 0 / 366.6 MB, free: 4.598 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002337/0.183, allocations: 1.266 MB / 367.8 MB, free: 3.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.1831, allocations: 8.031 kB / 367.9 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001956/0.1833, allocations: 144.2 kB / 368 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006485/0.184, allocations: 194.3 kB / 368.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.1852, allocations: 0.7068 MB / 368.9 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.012e-05/0.1853, allocations: 74 kB / 369 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.1854, allocations: 96 kB / 369.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.1872, allocations: 0.9268 MB / 370 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.627e-05/0.1872, allocations: 11.89 kB / 370 MB, free: 1.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-05/0.1873, allocations: 43.95 kB / 370 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.1874, allocations: 32 kB / 370.1 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.1886, allocations: 0.6325 MB / 370.7 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2373/0.4259, allocations: 3.933 MB / 374.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006873/0.4266, allocations: 443.8 kB / 375.1 MB, free: 22.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005495/0.4272, allocations: 264.6 kB / 375.3 MB, free: 22.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.4272, allocations: 4.516 kB / 375.3 MB, free: 22.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.4273, allocations: 42.31 kB / 375.4 MB, free: 22.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.875e-06/0.4273, allocations: 0 / 375.4 MB, free: 22.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.00267/0.43, allocations: 1.417 MB / 376.8 MB, free: 21.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.43, allocations: 86.62 kB / 376.9 MB, free: 21.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.4311, allocations: 0.8193 MB / 377.7 MB, free: 20.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.4311, allocations: 33.16 kB / 377.7 MB, free: 20.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002985/0.4314, allocations: 0.5538 MB / 378.3 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.4315, allocations: 155.9 kB / 378.4 MB, free: 20.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.4315, allocations: 10.75 kB / 378.4 MB, free: 20.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.258e-05/0.4316, allocations: 335 kB / 378.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.432, allocations: 169.2 kB / 378.9 MB, free: 19.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.4324, allocations: 461 kB / 379.4 MB, free: 19.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004019/0.4328, allocations: 245.1 kB / 379.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.4328, allocations: 3.719 kB / 379.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001285/0.4341, allocations: 0.7665 MB / 380.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.4342, allocations: 14.28 kB / 380.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.4342, allocations: 9.625 kB / 380.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.4345, allocations: 90.02 kB / 380.5 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.435, allocations: 156 kB / 380.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.4368, allocations: 2.877 MB / 383.5 MB, free: 16.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006213/0.4374, allocations: 35.45 kB / 383.6 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-05/0.4375, allocations: 39.56 kB / 383.6 MB, free: 16.11 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004455/0.438, allocations: 259.4 kB / 383.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.4381, allocations: 93.73 kB / 383.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000966/0.439, allocations: 492.2 kB / 384.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.4391, allocations: 7.828 kB / 384.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.4391, allocations: 2.688 kB / 384.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.4391, allocations: 2.156 kB / 384.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.4414, allocations: 1.448 MB / 385.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.4414, allocations: 2.891 kB / 385.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.4417, allocations: 77.66 kB / 386 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002088/0.4419, allocations: 73 kB / 386 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.442, allocations: 9.078 kB / 386 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.4438, allocations: 2.854 MB / 388.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.4438, allocations: 5.703 kB / 388.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.4451, allocations: 0.7791 MB / 389.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002988/0.4454, allocations: 196 kB / 389.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.634e-05/0.4455, allocations: 18.08 kB / 389.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003738/0.4459, allocations: 26.62 kB / 389.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.911e-05/0.446, allocations: 34.33 kB / 390 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.446, allocations: 16.08 kB / 390 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.4471, allocations: 0.563 MB / 390.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4471, allocations: 0 / 390.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001144/0.4482, allocations: 202.6 kB / 390.7 MB, free: 11.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00171/0.45, allocations: 1.341 MB / 392.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.4514, allocations: 0.6988 MB / 392.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.4514, allocations: 5.094 kB / 392.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.4522, allocations: 450.1 kB / 393.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.4535, allocations: 215.7 kB / 393.4 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008832/0.4624, allocations: 5.242 MB / 398.7 MB, free: 5.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005735/0.463, allocations: 1.003 MB / 399.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005662/0.4636, allocations: 103.7 kB / 399.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/0.464, allocations: 374.5 kB / 400.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of SimCode: time 1.473e-06/0.464, allocations: 0 / 400.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0476/0.5116, allocations: 17.53 MB / 417.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.5119, allocations: 214.7 kB / 417.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.254/2.766, allocations: 2.734 kB / 417.9 MB, free: 4.844 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat