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.0009684/0.0009684, allocations: 92.41 kB / 16.3 MB, free: 6.457 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.001065/0.001066, allocations: 179.7 kB / 17.2 MB, free: 6.34 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.361/1.361, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.0002629, allocations: 6.406 kB / 300.8 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1009, allocations: 50.42 MB / 351.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007707/0.1087, allocations: 6.58 MB / 357.8 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004356/0.1131, allocations: 2.566 MB / 360.4 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007605/0.1139, allocations: 23.94 kB / 360.4 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.1151, allocations: 473.7 kB / 360.9 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001067/0.1162, allocations: 498.6 kB / 361.4 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.1166, allocations: 175.6 kB / 361.5 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001401/0.118, allocations: 1.049 MB / 362.6 MB, free: 424 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005721/0.1186, allocations: 431.3 kB / 363 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004654/0.119, allocations: 442.2 kB / 363.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005136/0.1196, allocations: 493.7 kB / 363.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.1197, allocations: 64 kB / 364 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000305/0.12, allocations: 95.98 kB / 364.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.1202, allocations: 183.2 kB / 364.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.1204, allocations: 265.1 kB / 364.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.1215, allocations: 1.328 MB / 365.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.1215, allocations: 0 / 365.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1215, allocations: 4 kB / 365.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.1215, allocations: 0 / 365.8 MB, free: 13.12 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.001995/0.1235, allocations: 1.277 MB / 367.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1235, allocations: 12.03 kB / 367.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002467/0.1238, allocations: 156.1 kB / 367.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005699/0.1244, allocations: 174.4 kB / 367.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.1258, allocations: 0.7153 MB / 368.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.1258, allocations: 74 kB / 368.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.126, allocations: 100 kB / 368.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.1275, allocations: 0.9268 MB / 369.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.1276, allocations: 11.91 kB / 369.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.54e-05/0.1276, allocations: 39.95 kB / 369.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.1277, allocations: 24 kB / 369.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.1289, allocations: 0.6559 MB / 370 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005239/0.1342, allocations: 3.926 MB / 373.9 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007733/0.135, allocations: 460.3 kB / 374.4 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.135, allocations: 4 kB / 374.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.1351, allocations: 38.56 kB / 374.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.727e-06/0.1351, allocations: 0 / 374.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002855/0.1379, allocations: 1.445 MB / 375.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.138, allocations: 85.11 kB / 375.9 MB, free: 2.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000939/0.1389, allocations: 0.7746 MB / 376.7 MB, free: 1.742 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.139, allocations: 37.7 kB / 376.7 MB, free: 1.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003912/0.1394, allocations: 0.5681 MB / 377.3 MB, free: 1.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.1395, allocations: 161.7 kB / 377.5 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.1395, allocations: 16 kB / 377.5 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1397, allocations: 330 kB / 377.8 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.14, allocations: 177.9 kB / 378 MB, free: 456 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006272/0.1407, allocations: 467.6 kB / 378.4 MB, free: 15.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/0.1412, allocations: 251.6 kB / 378.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.1412, allocations: 4 kB / 378.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00138/0.1426, allocations: 0.7749 MB / 379.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.1426, allocations: 8.438 kB / 379.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.1427, allocations: 16 kB / 379.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002515/0.1429, allocations: 77.62 kB / 379.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005397/0.1435, allocations: 159.7 kB / 379.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00252/0.146, allocations: 2.802 MB / 382.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006398/0.1467, allocations: 43.95 kB / 382.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.1467, allocations: 32 kB / 382.6 MB, free: 11.41 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 (86): * Single equations (assignments): 84 * 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.0004936/0.1472, allocations: 257.6 kB / 382.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.1474, allocations: 90.95 kB / 382.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.1484, allocations: 499.4 kB / 383.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1484, allocations: 7.938 kB / 383.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.1484, allocations: 8.125 kB / 383.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1484, allocations: 3.984 kB / 383.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.1507, allocations: 1.414 MB / 384.9 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.1507, allocations: 4.219 kB / 384.9 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.1511, allocations: 83.89 kB / 384.9 MB, free: 8.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001888/0.1513, allocations: 57.69 kB / 385 MB, free: 8.891 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/0.1513, allocations: 8 kB / 385 MB, free: 8.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002446/0.1538, allocations: 2.806 MB / 387.8 MB, free: 5.805 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.1538, allocations: 0 / 387.8 MB, free: 5.805 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.1555, allocations: 0.8714 MB / 388.7 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004929/0.156, allocations: 196 kB / 388.9 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.817e-05/0.1561, allocations: 19.94 kB / 388.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/0.1565, allocations: 31.98 kB / 388.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.1566, allocations: 31.95 kB / 389 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.1567, allocations: 15.94 kB / 389 MB, free: 4.535 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007273/0.1574, allocations: 0.5303 MB / 389.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1574, allocations: 0 / 389.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008582/0.1583, allocations: 204 kB / 389.7 MB, free: 3.809 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 (40): * Single equations (assignments): 38 * 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.002118/0.1604, allocations: 1.918 MB / 391.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.1617, allocations: 0.7119 MB / 392.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.1617, allocations: 4 kB / 392.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.1624, allocations: 459 kB / 392.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009476/0.1634, allocations: 191.9 kB / 393 MB, free: 428 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/0.175, allocations: 11.5 MB / 404.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006558/0.1757, allocations: 1.032 MB / 405.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004889/0.1762, allocations: 103.3 kB / 405.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004262/0.1766, allocations: 391.3 kB / 406 MB, free: 2.996 MB / 334.1 MB Notification: Performance of SimCode: time 9.31e-07/0.1766, allocations: 0 / 406 MB, free: 2.996 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04206/0.2187, allocations: 17.17 MB / 423.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002566/0.219, allocations: 217.6 kB / 423.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.443, allocations: 0 / 423.4 MB, free: 1.898 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