Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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: 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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 115.3 kB / 17.06 MB, free: 6 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.001474/0.001474, allocations: 196 kB / 18 MB, free: 5.078 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.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 47.92 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3161, allocations: 49.42 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01309/0.3292, allocations: 12.17 MB / 412.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006752/0.336, allocations: 3.268 MB / 416.2 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.3379, allocations: 35.94 kB / 416.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002235/0.3402, allocations: 0.6984 MB / 416.9 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002477/0.3427, allocations: 0.7872 MB / 417.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.3438, allocations: 403.5 kB / 418.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003615/0.3474, allocations: 2.405 MB / 420.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001517/0.349, allocations: 0.993 MB / 421.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001382/0.3504, allocations: 0.9144 MB / 422.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001584/0.352, allocations: 0.9761 MB / 423.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003375/0.3523, allocations: 232 kB / 423.6 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005382/0.3529, allocations: 268 kB / 423.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003289/0.3532, allocations: 462.3 kB / 424.3 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.3543, allocations: 1.069 MB / 425.4 MB, free: 68 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002602/0.3569, allocations: 2.834 MB / 428.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3569, allocations: 0 / 428.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.357, allocations: 4 kB / 428.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.451e-05/0.357, allocations: 0 / 428.2 MB, free: 13.22 MB / 350.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.003321/0.3603, allocations: 2.156 MB / 430.4 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3604, allocations: 8.031 kB / 430.4 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008382/0.3612, allocations: 282.4 kB / 430.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.3629, allocations: 1.123 MB / 431.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.293e-05/0.363, allocations: 123.5 kB / 431.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.3632, allocations: 159.8 kB / 432.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.3655, allocations: 1.51 MB / 433.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.731e-05/0.3655, allocations: 11.84 kB / 433.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3657, allocations: 60 kB / 433.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.003e-05/0.3657, allocations: 40 kB / 433.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001955/0.3677, allocations: 1.057 MB / 434.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007273/0.3749, allocations: 6.226 MB / 441 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.3764, allocations: 0.6087 MB / 441.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008702/0.3773, allocations: 462.2 kB / 442 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-05/0.3774, allocations: 8.5 kB / 442 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.3774, allocations: 43.12 kB / 442.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.825e-06/0.3774, allocations: 4 kB / 442.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004652/0.3821, allocations: 2.368 MB / 444.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.3822, allocations: 111.5 kB / 444.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001777/0.3839, allocations: 1.309 MB / 445.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.384, allocations: 37.7 kB / 445.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005909/0.3846, allocations: 0.8492 MB / 446.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/0.3848, allocations: 260.3 kB / 447 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.3851, allocations: 206.7 kB / 447.2 MB, free: 9.574 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3853, allocations: 349.9 kB / 447.5 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006072/0.3859, allocations: 282.5 kB / 447.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008527/0.3867, allocations: 0.7342 MB / 448.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.3883, allocations: 1.088 MB / 449.6 MB, free: 6.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.3883, allocations: 4 kB / 449.6 MB, free: 6.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002348/0.3906, allocations: 1.267 MB / 450.9 MB, free: 5.414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.3907, allocations: 12 kB / 450.9 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/0.3907, allocations: 16 kB / 450.9 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005729/0.3913, allocations: 139 kB / 451.1 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008148/0.3921, allocations: 255.6 kB / 451.3 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003742/0.3959, allocations: 4.646 MB / 456 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000988/0.3969, allocations: 59.81 kB / 456 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.13e-05/0.397, allocations: 59.94 kB / 456.1 MB, free: 15.81 MB / 382.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006478/0.3976, allocations: 355 kB / 456.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.3979, allocations: 138.3 kB / 456.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.3996, allocations: 0.8256 MB / 457.4 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.3997, allocations: 11.94 kB / 457.4 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3997, allocations: 0 / 457.4 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3997, allocations: 3.984 kB / 457.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.4035, allocations: 2.33 MB / 459.7 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.4035, allocations: 4 kB / 459.7 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000555/0.4041, allocations: 127.8 kB / 459.9 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00043/0.4045, allocations: 142.8 kB / 460 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.4046, allocations: 16 kB / 460 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004038/0.4086, allocations: 4.787 MB / 464.8 MB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4086, allocations: 4 kB / 464.8 MB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.4109, allocations: 1.304 MB / 466.1 MB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005527/0.4115, allocations: 283.3 kB / 466.4 MB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.4117, allocations: 23.98 kB / 466.4 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006206/0.4123, allocations: 31.97 kB / 466.5 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.4124, allocations: 64.38 kB / 466.5 MB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.797e-05/0.4125, allocations: 23.98 kB / 466.5 MB, free: 4.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00127/0.4138, allocations: 0.882 MB / 467.4 MB, free: 3.801 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4138, allocations: 0 / 467.4 MB, free: 3.801 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001209/0.415, allocations: 324 kB / 467.7 MB, free: 3.484 MB / 382.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002292/0.4152, allocations: 151 kB / 467.9 MB, free: 3.328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.4171, allocations: 1.124 MB / 469 MB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4171, allocations: 0 / 469 MB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009865/0.4181, allocations: 0.7035 MB / 469.7 MB, free: 1.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/0.4195, allocations: 375.1 kB / 470.1 MB, free: 1.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004758/0.4243, allocations: 2.894 MB / 473 MB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007815/0.4251, allocations: 1.214 MB / 474.2 MB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005467/0.4256, allocations: 183.6 kB / 474.4 MB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.4258, allocations: 91.42 kB / 474.5 MB, free: 12.57 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4258, allocations: 0 / 474.5 MB, free: 12.57 MB / 398.1 MB Notification: Performance of Templates: time 0.0289/0.4548, allocations: 17.95 MB / 492.4 MB, free: 10.81 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches