Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.000908/0.0009081, allocations: 95.28 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.0008284/0.0008284, allocations: 182.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.737/1.737, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005204/0.0005205, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1109, allocations: 47.58 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01337/0.1243, allocations: 10.71 MB / 339.2 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007497/0.1319, allocations: 3.112 MB / 342.3 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002384/0.1343, allocations: 39.88 kB / 342.3 MB, free: 6.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00263/0.137, allocations: 0.5281 MB / 342.8 MB, free: 5.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003109/0.1401, allocations: 0.5893 MB / 343.4 MB, free: 4.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.1414, allocations: 259.6 kB / 343.7 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004428/0.1459, allocations: 2.163 MB / 345.8 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001806/0.1477, allocations: 0.6794 MB / 346.5 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.1498, allocations: 0.7194 MB / 347.2 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002101/0.1519, allocations: 0.8165 MB / 348.1 MB, free: 280 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006269/0.1526, allocations: 104 kB / 348.2 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.1536, allocations: 144 kB / 348.3 MB, free: 32 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000684/0.1543, allocations: 314.7 kB / 348.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.1554, allocations: 404.7 kB / 349 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003178/0.1586, allocations: 2.224 MB / 351.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.1586, allocations: 3.938 kB / 351.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1586, allocations: 0 / 351.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001286/0.1587, allocations: 0 / 351.2 MB, free: 13.08 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005343/0.1641, allocations: 1.852 MB / 353.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.1642, allocations: 12.03 kB / 353.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006631/0.1648, allocations: 223.9 kB / 353.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001382/0.1662, allocations: 289.3 kB / 353.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002766/0.169, allocations: 1.064 MB / 354.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.1691, allocations: 115.1 kB / 354.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004306/0.1696, allocations: 159.9 kB / 354.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003622/0.1732, allocations: 1.504 MB / 356.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.943e-05/0.1733, allocations: 15.83 kB / 356.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.1735, allocations: 64 kB / 356.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.081e-05/0.1735, allocations: 40 kB / 356.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003399/0.1769, allocations: 1.061 MB / 357.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01237/0.1893, allocations: 6.308 MB / 363.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/0.1911, allocations: 0.631 MB / 364.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009607/0.1921, allocations: 471 kB / 365 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.83e-05/0.1921, allocations: 12.52 kB / 365 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.548e-05/0.1922, allocations: 39.12 kB / 365.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 3.667e-06/0.1922, allocations: 0 / 365.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.006025/0.1983, allocations: 2.458 MB / 367.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/0.1984, allocations: 115.5 kB / 367.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002333/0.2007, allocations: 1.286 MB / 368.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.59e-05/0.2008, allocations: 41.64 kB / 369 MB, free: 10.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007602/0.2015, allocations: 0.8492 MB / 369.8 MB, free: 9.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.2018, allocations: 260.3 kB / 370.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.2019, allocations: 24 kB / 370.1 MB, free: 9.566 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.202, allocations: 353.9 kB / 370.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006085/0.2027, allocations: 290.5 kB / 370.7 MB, free: 8.934 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.2037, allocations: 0.7459 MB / 371.5 MB, free: 7.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008549/0.2046, allocations: 415 kB / 371.9 MB, free: 7.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/0.2046, allocations: 4 kB / 371.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002859/0.2075, allocations: 1.291 MB / 373.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.2075, allocations: 12 kB / 373.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.819e-05/0.2076, allocations: 16 kB / 373.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005472/0.2081, allocations: 151 kB / 373.3 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/0.209, allocations: 259.6 kB / 373.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004126/0.2131, allocations: 4.313 MB / 377.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.2143, allocations: 64 kB / 378 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.2144, allocations: 59.98 kB / 378 MB, free: 0.9844 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000905/0.2154, allocations: 349.4 kB / 378.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003523/0.2157, allocations: 150.3 kB / 378.5 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2351/0.4508, allocations: 0.8571 MB / 379.4 MB, free: 50.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/0.4509, allocations: 8.25 kB / 379.4 MB, free: 50.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4509, allocations: 0 / 379.4 MB, free: 50.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.4509, allocations: 5.766 kB / 379.4 MB, free: 50.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005316/0.4562, allocations: 2.37 MB / 381.8 MB, free: 49.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.4563, allocations: 6.906 kB / 381.8 MB, free: 49.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005657/0.4568, allocations: 133.7 kB / 381.9 MB, free: 49.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004626/0.4573, allocations: 142.1 kB / 382 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/0.4574, allocations: 26.77 kB / 382.1 MB, free: 49.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003434/0.4608, allocations: 4.451 MB / 386.5 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.4608, allocations: 7.969 kB / 386.5 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002712/0.4635, allocations: 1.346 MB / 387.9 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006235/0.4642, allocations: 282.8 kB / 388.1 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.4644, allocations: 16.75 kB / 388.2 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005924/0.4649, allocations: 46.39 kB / 388.2 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.4651, allocations: 65.38 kB / 388.3 MB, free: 44.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/0.4652, allocations: 27.16 kB / 388.3 MB, free: 44.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00174/0.467, allocations: 0.8641 MB / 389.2 MB, free: 44.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.934e-06/0.467, allocations: 0 / 389.2 MB, free: 44.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00158/0.4686, allocations: 330.6 kB / 389.5 MB, free: 44.45 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002803/0.4714, allocations: 1.921 MB / 391.4 MB, free: 43.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.4735, allocations: 1.134 MB / 392.5 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.4735, allocations: 1.5 kB / 392.5 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.4746, allocations: 0.7143 MB / 393.2 MB, free: 42.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/0.4763, allocations: 344.2 kB / 393.6 MB, free: 42.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.493, allocations: 8.98 MB / 402.6 MB, free: 36.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.4942, allocations: 1.213 MB / 403.8 MB, free: 35.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001106/0.4953, allocations: 171.6 kB / 403.9 MB, free: 35.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007587/0.496, allocations: 0.6176 MB / 404.6 MB, free: 35.41 MB / 318.1 MB Notification: Performance of SimCode: time 2.524e-06/0.4961, allocations: 0 / 404.6 MB, free: 35.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04695/0.543, allocations: 28.64 MB / 433.2 MB, free: 7.891 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/0.5432, allocations: 236.9 kB / 433.4 MB, free: 7.648 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.747/3.29, allocations: 0 / 433.4 MB, free: 7.648 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses_res.mat does not exist to compare? outputFormat=mat