Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007826/0.0007833, allocations: 90.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003679, allocations: 11.98 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3419, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01827/0.3602, allocations: 10.7 MB / 385.3 MB, free: 37.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.3715, allocations: 3.127 MB / 388.4 MB, free: 34.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003564/0.3752, allocations: 34.94 kB / 388.4 MB, free: 34.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004093/0.3793, allocations: 0.5248 MB / 388.9 MB, free: 33.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005297/0.3847, allocations: 0.5985 MB / 389.5 MB, free: 33.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.3867, allocations: 248.5 kB / 389.8 MB, free: 33.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005181/0.3919, allocations: 2.159 MB / 391.9 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002192/0.3941, allocations: 0.6833 MB / 392.6 MB, free: 30.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002439/0.3966, allocations: 0.7194 MB / 393.4 MB, free: 29.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002114/0.3987, allocations: 0.8088 MB / 394.2 MB, free: 29.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00059/0.3994, allocations: 104 kB / 394.3 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001521/0.4009, allocations: 148 kB / 394.4 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006806/0.4016, allocations: 314.5 kB / 394.7 MB, free: 28.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001247/0.4029, allocations: 408.6 kB / 395.1 MB, free: 28.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003565/0.4065, allocations: 2.224 MB / 397.3 MB, free: 25.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.4065, allocations: 0 / 397.3 MB, free: 25.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4065, allocations: 0 / 397.3 MB, free: 25.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001361/0.4067, allocations: 0 / 397.3 MB, free: 25.96 MB / 298.7 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.007089/0.4138, allocations: 1.86 MB / 399.2 MB, free: 24.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.848e-05/0.4138, allocations: 8.031 kB / 399.2 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001897/0.4158, allocations: 289.4 kB / 399.5 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.4194, allocations: 1.06 MB / 400.5 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.4195, allocations: 123 kB / 400.7 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004355/0.42, allocations: 155.9 kB / 400.8 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005284/0.4253, allocations: 1.504 MB / 402.3 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001372/0.4255, allocations: 7.906 kB / 402.3 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003825/0.4259, allocations: 64 kB / 402.4 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-05/0.4259, allocations: 40 kB / 402.4 MB, free: 20.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002825/0.4288, allocations: 1.061 MB / 403.5 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007317/0.4361, allocations: 6.317 MB / 409.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.4375, allocations: 0.6387 MB / 410.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007924/0.4383, allocations: 458.8 kB / 410.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-05/0.4384, allocations: 20.69 kB / 410.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.4384, allocations: 47.08 kB / 411 MB, free: 11.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 3.076e-06/0.4385, allocations: 0 / 411 MB, free: 11.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.004529/0.443, allocations: 2.446 MB / 413.4 MB, free: 9.301 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.4431, allocations: 115.5 kB / 413.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.4445, allocations: 1.29 MB / 414.8 MB, free: 7.855 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.4445, allocations: 41.7 kB / 414.9 MB, free: 7.809 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004373/0.445, allocations: 0.8414 MB / 415.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.4451, allocations: 264.2 kB / 416 MB, free: 6.695 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.4452, allocations: 24 kB / 416 MB, free: 6.672 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.453e-05/0.4453, allocations: 349.9 kB / 416.3 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005681/0.4458, allocations: 302.4 kB / 416.6 MB, free: 6.031 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007097/0.4466, allocations: 0.7382 MB / 417.3 MB, free: 5.074 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/0.4472, allocations: 410.9 kB / 417.8 MB, free: 4.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.4472, allocations: 4 kB / 417.8 MB, free: 4.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001988/0.4492, allocations: 1.291 MB / 419 MB, free: 3.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.4492, allocations: 12 kB / 419.1 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.4493, allocations: 19.88 kB / 419.1 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005047/0.4498, allocations: 143 kB / 419.2 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007678/0.4506, allocations: 263.6 kB / 419.5 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003236/0.4538, allocations: 4.317 MB / 423.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009823/0.4548, allocations: 64 kB / 423.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.071e-05/0.4549, allocations: 59.94 kB / 423.9 MB, free: 14.09 MB / 314.7 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.0007054/0.4556, allocations: 353.4 kB / 424.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.4558, allocations: 134.3 kB / 424.4 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.4576, allocations: 0.8727 MB / 425.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.4576, allocations: 15.92 kB / 425.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4576, allocations: 0 / 425.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.4576, allocations: 3.984 kB / 425.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003865/0.4615, allocations: 2.361 MB / 427.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.4615, allocations: 4 kB / 427.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000619/0.4622, allocations: 136.3 kB / 427.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004675/0.4626, allocations: 146.4 kB / 427.9 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/0.4627, allocations: 19.98 kB / 427.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004051/0.4668, allocations: 4.45 MB / 432.4 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.4668, allocations: 4 kB / 432.4 MB, free: 5.035 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002452/0.4692, allocations: 1.35 MB / 433.7 MB, free: 3.613 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000634/0.4699, allocations: 279.4 kB / 434 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003316/0.4702, allocations: 20 kB / 434 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008428/0.4711, allocations: 51.95 kB / 434.1 MB, free: 3.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.4712, allocations: 56.39 kB / 434.1 MB, free: 3.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-05/0.4713, allocations: 28.17 kB / 434.2 MB, free: 3.168 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001664/0.473, allocations: 0.8664 MB / 435 MB, free: 2.301 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.473, allocations: 0 / 435 MB, free: 2.301 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001557/0.4746, allocations: 328 kB / 435.4 MB, free: 1.98 MB / 314.7 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.0003158/0.4749, allocations: 135.3 kB / 435.5 MB, free: 1.836 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002193/0.4771, allocations: 1.135 MB / 436.6 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.4771, allocations: 0 / 436.6 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.4783, allocations: 0.7201 MB / 437.3 MB, free: 15.9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/0.4805, allocations: 350.5 kB / 437.7 MB, free: 15.56 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.4873, allocations: 3.627 MB / 441.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/0.4885, allocations: 1.214 MB / 442.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003337/0.4888, allocations: 99.42 kB / 442.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4888, allocations: 0 / 442.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of Templates: time 0.05608/0.5449, allocations: 40.66 MB / 483.3 MB, free: 1.812 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches