Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001844/0.001844, allocations: 109.1 kB / 21.18 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002369/0.002369, allocations: 218 kB / 24.5 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 230.5 MB / 258.1 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.91 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2494, allocations: 53.41 MB / 432.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01509/0.2645, allocations: 12.25 MB / 444.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006826/0.2713, allocations: 3.327 MB / 448 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.2728, allocations: 43.81 kB / 448.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.2748, allocations: 0.6922 MB / 448.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002212/0.277, allocations: 0.7833 MB / 449.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000915/0.2779, allocations: 407.4 kB / 449.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003278/0.2812, allocations: 2.425 MB / 452.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.2823, allocations: 0.65 MB / 453 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.2837, allocations: 0.934 MB / 454 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.285, allocations: 0.9801 MB / 454.9 MB, free: 140 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003189/0.2854, allocations: 228 kB / 455.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004942/0.2859, allocations: 267.9 kB / 455.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003834/0.2862, allocations: 462.3 kB / 455.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.2873, allocations: 1.077 MB / 456.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003312/0.2906, allocations: 2.837 MB / 459.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2907, allocations: 0 / 459.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.2907, allocations: 3.938 kB / 459.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.768e-05/0.2907, allocations: 0 / 459.8 MB, free: 11.27 MB / 366.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.004085/0.2948, allocations: 2.149 MB / 461.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.2948, allocations: 8.031 kB / 461.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009212/0.2957, allocations: 291.5 kB / 462.2 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002036/0.2978, allocations: 1.059 MB / 463.3 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.2979, allocations: 115.5 kB / 463.4 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002267/0.2981, allocations: 159.9 kB / 463.6 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/0.3008, allocations: 1.496 MB / 465.1 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.208e-05/0.3008, allocations: 15.89 kB / 465.1 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.301, allocations: 67.98 kB / 465.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.263e-05/0.301, allocations: 36 kB / 465.2 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/0.3032, allocations: 1.053 MB / 466.2 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008721/0.3119, allocations: 6.093 MB / 472.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.3135, allocations: 0.5767 MB / 472.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009383/0.3144, allocations: 430.1 kB / 473.3 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.3145, allocations: 4.656 kB / 473.3 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.3145, allocations: 47.16 kB / 473.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.555e-06/0.3145, allocations: 0 / 473.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005133/0.3196, allocations: 2.173 MB / 475.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/0.3197, allocations: 115.4 kB / 475.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/0.3216, allocations: 1.31 MB / 477 MB, free: 9.551 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/0.3217, allocations: 37.7 kB / 477 MB, free: 9.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007004/0.3224, allocations: 0.8671 MB / 477.9 MB, free: 8.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.3226, allocations: 277.8 kB / 478.1 MB, free: 8.359 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002849/0.3229, allocations: 206.8 kB / 478.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.323, allocations: 345.9 kB / 478.7 MB, free: 7.809 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006177/0.3237, allocations: 286.5 kB / 479 MB, free: 7.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009832/0.3246, allocations: 0.7346 MB / 479.7 MB, free: 6.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.3263, allocations: 1.085 MB / 480.8 MB, free: 5.289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.924e-06/0.3263, allocations: 4 kB / 480.8 MB, free: 5.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002581/0.3289, allocations: 1.26 MB / 482 MB, free: 4.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.3289, allocations: 14.66 kB / 482 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/0.3289, allocations: 20 kB / 482.1 MB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005308/0.3295, allocations: 135 kB / 482.2 MB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000866/0.3303, allocations: 259.6 kB / 482.5 MB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004303/0.3346, allocations: 4.336 MB / 486.8 MB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.3357, allocations: 51.92 kB / 486.8 MB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.014e-05/0.3358, allocations: 55.98 kB / 486.9 MB, free: 14.8 MB / 398.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.0006097/0.3364, allocations: 361.4 kB / 487.2 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.3366, allocations: 147.1 kB / 487.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.3384, allocations: 0.8217 MB / 488.2 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3384, allocations: 11.94 kB / 488.2 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3384, allocations: 4 kB / 488.2 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.3384, allocations: 3.984 kB / 488.2 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004027/0.3425, allocations: 2.293 MB / 490.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3425, allocations: 4 kB / 490.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005815/0.3431, allocations: 132.3 kB / 490.7 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004607/0.3435, allocations: 134.4 kB / 490.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.391e-05/0.3436, allocations: 16 kB / 490.8 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004459/0.348, allocations: 4.493 MB / 495.3 MB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.348, allocations: 8.125 kB / 495.3 MB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00247/0.3505, allocations: 1.301 MB / 496.6 MB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005109/0.351, allocations: 210.9 kB / 496.8 MB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.3512, allocations: 20 kB / 496.8 MB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006417/0.3518, allocations: 39.91 kB / 496.9 MB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.3519, allocations: 64.47 kB / 496.9 MB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.711e-05/0.352, allocations: 27.98 kB / 497 MB, free: 4.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001318/0.3533, allocations: 0.8819 MB / 497.8 MB, free: 3.273 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3533, allocations: 0 / 497.8 MB, free: 3.273 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001164/0.3545, allocations: 324 kB / 498.2 MB, free: 2.957 MB / 398.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.0002366/0.3547, allocations: 135.1 kB / 498.3 MB, free: 2.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.3566, allocations: 1.084 MB / 499.4 MB, free: 1.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3566, allocations: 4 kB / 499.4 MB, free: 1.691 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3577, allocations: 0.6918 MB / 0.4884 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/0.3592, allocations: 366.7 kB / 0.4887 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005338/0.3646, allocations: 2.996 MB / 0.4916 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009066/0.3655, allocations: 1.217 MB / 0.4928 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002866/0.3658, allocations: 99.42 kB / 0.4929 GB, free: 12.19 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3658, allocations: 0 / 0.4929 GB, free: 12.19 MB / 414.1 MB Notification: Performance of Templates: time 0.04893/0.4147, allocations: 41.23 MB / 0.5332 GB, free: 2.988 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.792041484033689]