Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_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.0009555/0.0009555, allocations: 87.7 kB / 16.31 MB, free: 6.453 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.001145/0.001145, allocations: 180.8 kB / 17.21 MB, free: 6.328 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.393/1.393, allocations: 223.2 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002977/0.0002978, allocations: 7.188 kB / 300.9 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1229, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007461/0.1304, allocations: 7.242 MB / 358.6 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004646/0.1351, allocations: 2.511 MB / 361.1 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009862/0.1361, allocations: 19.94 kB / 361.1 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001474/0.1376, allocations: 473.3 kB / 361.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00121/0.1388, allocations: 401.1 kB / 362 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.1393, allocations: 167.8 kB / 362.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.1409, allocations: 1.346 MB / 363.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006603/0.1416, allocations: 427.3 kB / 363.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006741/0.1422, allocations: 473.9 kB / 364.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005433/0.1428, allocations: 0.5054 MB / 364.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.1429, allocations: 68 kB / 364.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002701/0.1432, allocations: 99.98 kB / 365 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.1433, allocations: 195.1 kB / 365.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.1436, allocations: 261.1 kB / 365.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.1448, allocations: 1.379 MB / 366.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1448, allocations: 0 / 366.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1448, allocations: 0 / 366.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.1448, allocations: 4 kB / 366.9 MB, free: 11.98 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002218/0.1471, allocations: 1.295 MB / 368.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.1471, allocations: 12.03 kB / 368.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001793/0.1473, allocations: 152.2 kB / 368.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005989/0.1479, allocations: 186.3 kB / 368.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.1492, allocations: 0.7154 MB / 369.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.509e-05/0.1492, allocations: 78 kB / 369.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1494, allocations: 103.9 kB / 369.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.151, allocations: 0.9386 MB / 370.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.349e-05/0.1511, allocations: 11.88 kB / 370.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-05/0.1512, allocations: 43.95 kB / 370.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.1512, allocations: 24 kB / 370.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.1525, allocations: 0.6559 MB / 371.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005572/0.1581, allocations: 3.965 MB / 375 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008313/0.1589, allocations: 464.3 kB / 375.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005921/0.1596, allocations: 272.7 kB / 375.7 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.1596, allocations: 7.938 kB / 375.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.1597, allocations: 34.56 kB / 375.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.746e-06/0.1597, allocations: 4 kB / 375.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00342/0.1631, allocations: 1.574 MB / 377.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.1632, allocations: 89.11 kB / 377.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.1644, allocations: 0.8331 MB / 378.3 MB, free: 40 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.1644, allocations: 33.7 kB / 378.3 MB, free: 0 / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/0.1649, allocations: 0.5681 MB / 378.9 MB, free: 15.42 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.165, allocations: 157.8 kB / 379 MB, free: 15.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.1651, allocations: 16 kB / 379.1 MB, free: 15.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1652, allocations: 337.9 kB / 379.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003615/0.1656, allocations: 173.9 kB / 379.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006113/0.1662, allocations: 475.6 kB / 380 MB, free: 14.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.1667, allocations: 255.6 kB / 380.3 MB, free: 13.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1667, allocations: 4 kB / 380.3 MB, free: 13.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001349/0.1681, allocations: 0.7948 MB / 381.1 MB, free: 13.08 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.1681, allocations: 12.03 kB / 381.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.1681, allocations: 15.95 kB / 381.1 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002599/0.1684, allocations: 81.67 kB / 381.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005003/0.1689, allocations: 159.7 kB / 381.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.1714, allocations: 2.872 MB / 384.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005568/0.172, allocations: 39.98 kB / 384.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.1721, allocations: 32 kB / 384.3 MB, free: 9.605 MB / 318.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.0004503/0.1725, allocations: 261.5 kB / 384.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.1727, allocations: 90.88 kB / 384.6 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009687/0.1736, allocations: 0.5112 MB / 385.1 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1736, allocations: 4 kB / 385.1 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1737, allocations: 4 kB / 385.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.1737, allocations: 3.984 kB / 385.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002226/0.1759, allocations: 1.485 MB / 386.6 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.1759, allocations: 4 kB / 386.6 MB, free: 7.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.1762, allocations: 75.91 kB / 386.7 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.1765, allocations: 73.83 kB / 386.8 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.1765, allocations: 12 kB / 386.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/0.1787, allocations: 2.86 MB / 389.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.1788, allocations: 11.91 kB / 389.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.1801, allocations: 0.8204 MB / 390.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003651/0.1804, allocations: 200 kB / 390.7 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.1806, allocations: 12 kB / 390.7 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004431/0.181, allocations: 27.98 kB / 390.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.1811, allocations: 47.84 kB / 390.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.1812, allocations: 11.98 kB / 390.8 MB, free: 2.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008273/0.182, allocations: 0.5693 MB / 391.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.182, allocations: 0 / 391.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009167/0.1829, allocations: 204 kB / 391.5 MB, free: 1.887 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.001887/0.1848, allocations: 1.382 MB / 392.9 MB, free: 464 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.1862, allocations: 0.7317 MB / 393.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.1862, allocations: 0 / 393.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006803/0.1869, allocations: 446.9 kB / 394.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.1882, allocations: 230.6 kB / 394.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009275/0.1974, allocations: 5.357 MB / 399.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007505/0.1982, allocations: 1.017 MB / 400.7 MB, free: 8.301 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005441/0.1988, allocations: 99.34 kB / 400.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004766/0.1993, allocations: 391.3 kB / 401.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1993, allocations: 4 kB / 401.2 MB, free: 7.812 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03733/0.2366, allocations: 17.84 MB / 419 MB, free: 6.301 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.2368, allocations: 219.2 kB / 419.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.264/2.501, allocations: 0 / 419.2 MB, free: 6.066 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat