Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.0009132/0.0009131, allocations: 97.06 kB / 16.95 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.0009552/0.0009551, allocations: 181.7 kB / 17.84 MB, free: 6.008 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.739/1.739, 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.0004996/0.0004998, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 47.56 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01165/0.1226, allocations: 10.35 MB / 338.8 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007004/0.1297, allocations: 3.018 MB / 341.8 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0023/0.132, allocations: 35.94 kB / 341.9 MB, free: 6.523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002601/0.1347, allocations: 0.5164 MB / 342.4 MB, free: 6.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003048/0.1377, allocations: 0.5506 MB / 342.9 MB, free: 5.449 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.139, allocations: 263.6 kB / 343.2 MB, free: 5.191 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00375/0.1427, allocations: 2.008 MB / 345.2 MB, free: 3.172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001664/0.1444, allocations: 0.6791 MB / 345.9 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001694/0.1461, allocations: 0.6689 MB / 346.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.1478, allocations: 0.7504 MB / 347.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004231/0.1483, allocations: 100 kB / 347.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007217/0.149, allocations: 140 kB / 347.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002937/0.1493, allocations: 290.6 kB / 347.8 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000559/0.1499, allocations: 388.8 kB / 348.2 MB, free: 144 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001897/0.1518, allocations: 2.107 MB / 350.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1518, allocations: 0 / 350.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1518, allocations: 0 / 350.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.594e-05/0.1518, allocations: 3.938 kB / 350.3 MB, free: 14.02 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002902/0.1547, allocations: 1.764 MB / 352.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.1548, allocations: 12.03 kB / 352.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002517/0.155, allocations: 223.9 kB / 352.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007052/0.1558, allocations: 261.6 kB / 352.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.1572, allocations: 1 MB / 353.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.096e-05/0.1573, allocations: 115.1 kB / 353.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001808/0.1575, allocations: 159.9 kB / 353.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002449/0.16, allocations: 1.48 MB / 355.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.792e-05/0.16, allocations: 7.906 kB / 355.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.1601, allocations: 60 kB / 355.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/0.1602, allocations: 44 kB / 355.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.162, allocations: 0.9785 MB / 356.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008016/0.1701, allocations: 6.59 MB / 363 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007862/0.1709, allocations: 400.2 kB / 363.4 MB, free: 400 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003994/0.1713, allocations: 230 kB / 363.6 MB, free: 168 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.1714, allocations: 8.438 kB / 363.6 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005591/0.1719, allocations: 272.9 kB / 363.9 MB, free: 15.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.204e-06/0.1719, allocations: 0 / 363.9 MB, free: 15.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003247/0.1752, allocations: 1.781 MB / 365.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.1753, allocations: 162.8 kB / 365.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/0.177, allocations: 1.269 MB / 367.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.1771, allocations: 41.7 kB / 367.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000733/0.1778, allocations: 0.8711 MB / 368 MB, free: 11.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.178, allocations: 209.1 kB / 368.2 MB, free: 11.37 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.1781, allocations: 20 kB / 368.2 MB, free: 11.35 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1782, allocations: 353.9 kB / 368.5 MB, free: 11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.1786, allocations: 230.5 kB / 368.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008596/0.1795, allocations: 0.8034 MB / 369.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006348/0.1801, allocations: 411.5 kB / 370 MB, free: 9.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.1802, allocations: 4 kB / 370 MB, free: 9.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00185/0.182, allocations: 1.169 MB / 371.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.249e-05/0.1821, allocations: 41.69 kB / 371.2 MB, free: 8.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.1821, allocations: 24 kB / 371.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.1824, allocations: 65.7 kB / 371.3 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007413/0.1831, allocations: 267.6 kB / 371.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/0.1852, allocations: 2.587 MB / 374.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009174/0.1861, allocations: 75.97 kB / 374.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.291e-05/0.1862, allocations: 60 kB / 374.3 MB, free: 4.703 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007018/0.1869, allocations: 353.3 kB / 374.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.1871, allocations: 138.3 kB / 374.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.1882, allocations: 0.5645 MB / 375.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1882, allocations: 4 kB / 375.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1882, allocations: 0 / 375.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1882, allocations: 4 kB / 375.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/0.1915, allocations: 1.881 MB / 377.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.1915, allocations: 7.984 kB / 377.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000416/0.192, allocations: 103.8 kB / 377.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.1921, allocations: 49.69 kB / 377.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.374e-05/0.1922, allocations: 12 kB / 377.4 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2317/0.4239, allocations: 2.545 MB / 379.9 MB, free: 48.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.424, allocations: 4.125 kB / 379.9 MB, free: 48.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.4259, allocations: 0.9445 MB / 380.9 MB, free: 48.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005161/0.4264, allocations: 251 kB / 381.1 MB, free: 48.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.4266, allocations: 15.36 kB / 381.1 MB, free: 48.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.4271, allocations: 36.19 kB / 381.2 MB, free: 48.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.4272, allocations: 55 kB / 381.2 MB, free: 48.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/0.4273, allocations: 22.84 kB / 381.2 MB, free: 48.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001702/0.429, allocations: 0.8329 MB / 382.1 MB, free: 48.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.429, allocations: 3.828 kB / 382.1 MB, free: 48.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001459/0.4304, allocations: 306.6 kB / 382.4 MB, free: 48.3 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001941/0.4324, allocations: 1.506 MB / 383.9 MB, free: 47.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.4342, allocations: 0.9272 MB / 384.8 MB, free: 47.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4342, allocations: 1.125 kB / 384.8 MB, free: 47.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006802/0.4349, allocations: 478.2 kB / 385.3 MB, free: 46.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.4363, allocations: 313.1 kB / 385.6 MB, free: 46.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.452, allocations: 8.062 MB / 393.6 MB, free: 41.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.4531, allocations: 1.176 MB / 394.8 MB, free: 41.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009528/0.4541, allocations: 174.3 kB / 395 MB, free: 41.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006811/0.4548, allocations: 0.5654 MB / 395.5 MB, free: 40.58 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4548, allocations: 3.719 kB / 395.6 MB, free: 40.58 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04707/0.5019, allocations: 25.64 MB / 421.2 MB, free: 19.79 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.5021, allocations: 234.9 kB / 421.4 MB, free: 19.54 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.65/3.152, allocations: 0 / 421.4 MB, free: 19.54 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat