Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.0009396/0.0009398, allocations: 94.14 kB / 16.95 MB, free: 6.113 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.001112/0.001112, allocations: 175.3 kB / 17.84 MB, free: 5.73 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.674/1.674, allocations: 205.4 MB / 224 MB, free: 13.15 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.0006332/0.0006335, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1203, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01/0.1304, allocations: 7.205 MB / 335.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006316/0.1368, allocations: 2.558 MB / 338.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.1379, allocations: 23.94 kB / 338.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.1396, allocations: 465.4 kB / 338.7 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001547/0.1412, allocations: 397.1 kB / 339.1 MB, free: 9.301 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005982/0.1418, allocations: 167.7 kB / 339.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.1437, allocations: 1.358 MB / 340.6 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008744/0.1445, allocations: 423.3 kB / 341 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000831/0.1454, allocations: 469.9 kB / 341.5 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008016/0.1462, allocations: 0.5054 MB / 342 MB, free: 6.375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001332/0.1463, allocations: 67.98 kB / 342.1 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004242/0.1468, allocations: 108 kB / 342.2 MB, free: 6.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.147, allocations: 195 kB / 342.3 MB, free: 6.012 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004469/0.1474, allocations: 265.1 kB / 342.6 MB, free: 5.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.1494, allocations: 1.363 MB / 344 MB, free: 4.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.1494, allocations: 0 / 344 MB, free: 4.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1494, allocations: 0 / 344 MB, free: 4.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.1495, allocations: 0 / 344 MB, free: 4.379 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002937/0.1524, allocations: 1.304 MB / 345.3 MB, free: 3.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.747e-05/0.1525, allocations: 16.02 kB / 345.3 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002349/0.1527, allocations: 144.2 kB / 345.4 MB, free: 2.855 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008572/0.1536, allocations: 194.3 kB / 345.6 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.1552, allocations: 0.7115 MB / 346.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.141e-05/0.1553, allocations: 78 kB / 346.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.1555, allocations: 103.9 kB / 346.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002278/0.1578, allocations: 0.9424 MB / 347.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.54e-05/0.1578, allocations: 4 kB / 347.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.1579, allocations: 40 kB / 347.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-05/0.158, allocations: 24 kB / 347.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.1598, allocations: 0.6559 MB / 348.2 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008021/0.1678, allocations: 3.984 MB / 352.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.1691, allocations: 452.4 kB / 352.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009758/0.1701, allocations: 272.7 kB / 352.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.1701, allocations: 4 kB / 352.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.1702, allocations: 38.56 kB / 352.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.507e-06/0.1702, allocations: 4 kB / 352.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004426/0.1746, allocations: 1.576 MB / 354.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.1747, allocations: 89.11 kB / 354.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.1765, allocations: 0.8293 MB / 355.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.1766, allocations: 29.7 kB / 355.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004804/0.177, allocations: 0.5643 MB / 356 MB, free: 7.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.1772, allocations: 165.7 kB / 356.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/0.1772, allocations: 15.94 kB / 356.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1774, allocations: 334 kB / 356.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.1778, allocations: 177.9 kB / 356.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.1784, allocations: 475.5 kB / 357.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005052/0.1789, allocations: 259.8 kB / 357.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.1789, allocations: 4 kB / 357.4 MB, free: 6.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001534/0.1805, allocations: 0.7831 MB / 358.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.1805, allocations: 19.98 kB / 358.2 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/0.1806, allocations: 8 kB / 358.2 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002896/0.1809, allocations: 81.69 kB / 358.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005207/0.1814, allocations: 155.7 kB / 358.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003026/0.1844, allocations: 2.884 MB / 361.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006526/0.1851, allocations: 43.95 kB / 361.4 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.923e-05/0.1852, allocations: 35.98 kB / 361.4 MB, free: 1.98 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005227/0.1857, allocations: 261.5 kB / 361.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001866/0.1859, allocations: 86.97 kB / 361.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009938/0.1869, allocations: 0.5225 MB / 362.3 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1869, allocations: 4 kB / 362.3 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.1869, allocations: 7.938 kB / 362.3 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1869, allocations: 0 / 362.3 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.1896, allocations: 1.477 MB / 363.8 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.1896, allocations: 7.984 kB / 363.8 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003219/0.1899, allocations: 83.84 kB / 363.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002109/0.1902, allocations: 77.83 kB / 363.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.132e-05/0.1902, allocations: 12 kB / 363.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.1927, allocations: 2.849 MB / 366.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.1927, allocations: 0 / 366.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.1941, allocations: 0.82 MB / 367.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.1945, allocations: 196.1 kB / 367.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.1946, allocations: 12 kB / 367.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.1951, allocations: 35.97 kB / 367.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.806e-05/0.1952, allocations: 35.95 kB / 367.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.1952, allocations: 19.95 kB / 367.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008713/0.1961, allocations: 0.5615 MB / 368.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1961, allocations: 0 / 368.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009909/0.1971, allocations: 212 kB / 368.7 MB, free: 10.27 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0018/0.1989, allocations: 1.389 MB / 370 MB, free: 8.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.2003, allocations: 0.7164 MB / 370.8 MB, free: 8.086 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2003, allocations: 0 / 370.8 MB, free: 8.086 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007002/0.201, allocations: 462.7 kB / 371.2 MB, free: 7.609 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.2022, allocations: 215.3 kB / 371.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.2124, allocations: 5.361 MB / 376.8 MB, free: 1.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007888/0.2132, allocations: 1.013 MB / 377.8 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005344/0.2138, allocations: 103.3 kB / 377.9 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005191/0.2143, allocations: 387.3 kB / 378.3 MB, free: 212 kB / 318.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2143, allocations: 0 / 378.3 MB, free: 212 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2765/0.4908, allocations: 17.85 MB / 396.1 MB, free: 44.33 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/0.4911, allocations: 222.5 kB / 396.3 MB, free: 44.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.399/2.89, allocations: 0 / 396.3 MB, free: 44.09 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase_res.mat does not exist to compare? outputFormat=mat