Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_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.001123/0.001123, allocations: 99.42 kB / 16.94 MB, free: 6.445 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.0009786/0.0009788, allocations: 183.7 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005229/0.0005232, allocations: 16 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1139, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008537/0.1225, allocations: 6.44 MB / 334.9 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005044/0.1276, allocations: 2.544 MB / 337.4 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001339/0.129, allocations: 23.94 kB / 337.4 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001876/0.1309, allocations: 473.6 kB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001833/0.1327, allocations: 486.6 kB / 338.4 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007072/0.1335, allocations: 155.8 kB / 338.5 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002287/0.1358, allocations: 1.034 MB / 339.6 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008524/0.1366, allocations: 419.2 kB / 340 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009221/0.1376, allocations: 430.2 kB / 340.4 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008988/0.1385, allocations: 485.7 kB / 340.9 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002368/0.1387, allocations: 64 kB / 340.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004657/0.1392, allocations: 99.98 kB / 341 MB, free: 7.336 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.1394, allocations: 179.2 kB / 341.2 MB, free: 7.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003718/0.1398, allocations: 261.1 kB / 341.5 MB, free: 6.898 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.1412, allocations: 1.301 MB / 342.8 MB, free: 5.598 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1412, allocations: 0 / 342.8 MB, free: 5.598 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1412, allocations: 0 / 342.8 MB, free: 5.598 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.405e-05/0.1413, allocations: 0 / 342.8 MB, free: 5.598 MB / 286.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.002339/0.1436, allocations: 1.254 MB / 344 MB, free: 4.289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.1437, allocations: 8.031 kB / 344 MB, free: 4.281 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002422/0.1439, allocations: 152.2 kB / 344.2 MB, free: 4.125 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005782/0.1445, allocations: 178.4 kB / 344.3 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.1458, allocations: 0.6989 MB / 345 MB, free: 3.207 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.839e-05/0.1459, allocations: 73.98 kB / 345.1 MB, free: 3.133 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.1461, allocations: 96 kB / 345.2 MB, free: 3.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.1478, allocations: 0.9229 MB / 346.1 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.782e-05/0.1479, allocations: 11.91 kB / 346.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-05/0.148, allocations: 40 kB / 346.2 MB, free: 2.039 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.1481, allocations: 24 kB / 346.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.1497, allocations: 0.6402 MB / 346.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006542/0.1562, allocations: 3.892 MB / 350.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007334/0.157, allocations: 445.4 kB / 351.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.034e-05/0.1571, allocations: 8.312 kB / 351.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.1571, allocations: 34.89 kB / 351.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.424e-06/0.1571, allocations: 0 / 351.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002948/0.1601, allocations: 1.384 MB / 352.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.059e-05/0.1602, allocations: 81.11 kB / 352.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.1613, allocations: 0.7705 MB / 353.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.1613, allocations: 37.64 kB / 353.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005243/0.1619, allocations: 0.5565 MB / 354 MB, free: 9.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.162, allocations: 161.8 kB / 354.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.1621, allocations: 12 kB / 354.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.1622, allocations: 337.9 kB / 354.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003316/0.1626, allocations: 161.9 kB / 354.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005968/0.1632, allocations: 456 kB / 355.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004449/0.1637, allocations: 245.7 kB / 355.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.1637, allocations: 4 kB / 355.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001299/0.165, allocations: 0.7473 MB / 356.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.165, allocations: 8.5 kB / 356.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.165, allocations: 12 kB / 356.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002431/0.1653, allocations: 69.69 kB / 356.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/0.1658, allocations: 155.7 kB / 356.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/0.1682, allocations: 2.814 MB / 359.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005957/0.1688, allocations: 32 kB / 359.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.102e-05/0.1689, allocations: 40.05 kB / 359.3 MB, free: 4.148 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 (85): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005623/0.1695, allocations: 265.5 kB / 359.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.1696, allocations: 82.97 kB / 359.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.1707, allocations: 483.6 kB / 360.1 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.1707, allocations: 8 kB / 360.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1707, allocations: 0 / 360.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.1708, allocations: 3.984 kB / 360.1 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.1731, allocations: 1.379 MB / 361.5 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1732, allocations: 0 / 361.5 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.1735, allocations: 71.91 kB / 361.5 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001875/0.1737, allocations: 61.84 kB / 361.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.1737, allocations: 16 kB / 361.6 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/0.1764, allocations: 2.79 MB / 364.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.46e-05/0.1764, allocations: 7.984 kB / 364.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.1779, allocations: 0.8314 MB / 365.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.1782, allocations: 192.1 kB / 365.4 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.438e-05/0.1783, allocations: 8 kB / 365.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004262/0.1788, allocations: 35.92 kB / 365.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.1789, allocations: 39.84 kB / 365.5 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.1789, allocations: 16 kB / 365.5 MB, free: 13.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008645/0.1798, allocations: 0.5146 MB / 366 MB, free: 12.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1798, allocations: 0 / 366 MB, free: 12.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001057/0.1808, allocations: 200 kB / 366.2 MB, free: 12.69 MB / 318.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 (39): * Single equations (assignments): 37 * 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002209/0.1831, allocations: 1.885 MB / 368.1 MB, free: 10.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.1844, allocations: 0.6788 MB / 368.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1845, allocations: 0 / 368.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000625/0.1851, allocations: 425.7 kB / 369.2 MB, free: 9.574 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.1861, allocations: 207.6 kB / 369.4 MB, free: 9.367 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1718/0.3579, allocations: 11.38 MB / 380.8 MB, free: 51.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.3586, allocations: 1.025 MB / 381.8 MB, free: 50.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000494/0.3591, allocations: 102.6 kB / 381.9 MB, free: 50.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.3596, allocations: 374 kB / 382.3 MB, free: 50.75 MB / 318.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3596, allocations: 0 / 382.3 MB, free: 50.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03613/0.3957, allocations: 16.85 MB / 399.1 MB, free: 42.92 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/0.3959, allocations: 221.9 kB / 399.4 MB, free: 42.67 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/2.414, allocations: 0 / 399.4 MB, free: 42.67 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat