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.001361/0.001361, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001464/0.001464, allocations: 209.9 kB / 24.48 MB, free: 3.934 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.447/1.447, allocations: 230.5 MB / 258.1 MB, free: 7.789 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.001989/0.001989, allocations: 60.09 kB / 379 MB, free: 2.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3127, allocations: 53.41 MB / 432.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01446/0.3271, allocations: 10.57 MB / 443 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00756/0.3347, allocations: 3.14 MB / 446.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001815/0.3365, allocations: 39.88 kB / 446.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.3386, allocations: 0.6362 MB / 446.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002782/0.3414, allocations: 0.791 MB / 447.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.3424, allocations: 407.5 kB / 448 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00351/0.346, allocations: 2.409 MB / 450.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001151/0.3471, allocations: 0.6032 MB / 451 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001427/0.3485, allocations: 0.9417 MB / 451.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.3498, allocations: 0.8472 MB / 452.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003618/0.3501, allocations: 228 kB / 453 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005927/0.3507, allocations: 264 kB / 453.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004334/0.3512, allocations: 466.3 kB / 453.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.3522, allocations: 0.8711 MB / 454.6 MB, free: 180 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003342/0.3555, allocations: 2.856 MB / 457.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3555, allocations: 0 / 457.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3555, allocations: 0 / 457.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.8e-05/0.3556, allocations: 0 / 457.4 MB, free: 13.3 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.004451/0.36, allocations: 2.145 MB / 459.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3601, allocations: 11.97 kB / 459.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009809/0.3611, allocations: 291.5 kB / 459.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.3635, allocations: 1.051 MB / 460.9 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.3636, allocations: 119.5 kB / 461.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002613/0.3639, allocations: 163.8 kB / 461.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00304/0.3669, allocations: 1.601 MB / 462.8 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.268e-05/0.3669, allocations: 7.984 kB / 462.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.3671, allocations: 67.94 kB / 462.9 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-05/0.3671, allocations: 36 kB / 462.9 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002266/0.3694, allocations: 1.045 MB / 464 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008993/0.3784, allocations: 5.398 MB / 469.4 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.3799, allocations: 0.5811 MB / 469.9 MB, free: 340 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009555/0.3809, allocations: 422.4 kB / 470.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.399e-05/0.381, allocations: 12.64 kB / 470.4 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.348e-05/0.381, allocations: 43.16 kB / 470.4 MB, free: 15.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.514e-06/0.381, allocations: 0 / 470.4 MB, free: 15.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005188/0.3862, allocations: 2.146 MB / 472.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.927e-05/0.3863, allocations: 119.5 kB / 472.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/0.3883, allocations: 1.172 MB / 473.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.994e-05/0.3884, allocations: 41.7 kB / 473.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008125/0.3892, allocations: 0.8818 MB / 474.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002899/0.3895, allocations: 273.7 kB / 475 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003291/0.3898, allocations: 210.8 kB / 475.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002921/0.3901, allocations: 353.9 kB / 475.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006419/0.3908, allocations: 282.5 kB / 475.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.3918, allocations: 0.7888 MB / 476.7 MB, free: 9.289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.3936, allocations: 1.084 MB / 477.7 MB, free: 8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.3936, allocations: 4 kB / 477.7 MB, free: 7.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002747/0.3964, allocations: 1.253 MB / 479 MB, free: 6.727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.3964, allocations: 10.19 kB / 479 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/0.3964, allocations: 16 kB / 479 MB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000521/0.3969, allocations: 139 kB / 479.2 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008575/0.3978, allocations: 259.6 kB / 479.4 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004485/0.4023, allocations: 4.248 MB / 483.7 MB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.4033, allocations: 55.97 kB / 483.7 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-05/0.4034, allocations: 52 kB / 483.8 MB, free: 1.645 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.0006633/0.4041, allocations: 361.4 kB / 484.1 MB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.4043, allocations: 135.2 kB / 484.2 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/0.4063, allocations: 0.8164 MB / 485.1 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.4063, allocations: 8 kB / 485.1 MB, free: 312 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4063, allocations: 3.938 kB / 485.1 MB, free: 308 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.4063, allocations: 3.984 kB / 485.1 MB, free: 304 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00415/0.4105, allocations: 1.965 MB / 487 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.4105, allocations: 4 kB / 487.1 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005904/0.4111, allocations: 127.8 kB / 487.2 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004577/0.4115, allocations: 134.9 kB / 487.3 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.4116, allocations: 16 kB / 487.3 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004781/0.4163, allocations: 4.401 MB / 491.7 MB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.4163, allocations: 7.938 kB / 491.7 MB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.4191, allocations: 1.293 MB / 493 MB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006017/0.4197, allocations: 195.1 kB / 493.2 MB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.4198, allocations: 20 kB / 493.2 MB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006134/0.4204, allocations: 36.16 kB / 493.3 MB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.4206, allocations: 68.27 kB / 493.3 MB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.4206, allocations: 28 kB / 493.4 MB, free: 7.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001243/0.4219, allocations: 0.7724 MB / 494.1 MB, free: 6.758 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4219, allocations: 0 / 494.1 MB, free: 6.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001239/0.4231, allocations: 324 kB / 494.5 MB, free: 6.441 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.0002674/0.4234, allocations: 138.6 kB / 494.6 MB, free: 6.301 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.4255, allocations: 1.08 MB / 495.7 MB, free: 5.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.4255, allocations: 2 kB / 495.7 MB, free: 5.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.4266, allocations: 0.6948 MB / 496.4 MB, free: 4.453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.4281, allocations: 330.5 kB / 496.7 MB, free: 4.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005686/0.4338, allocations: 2.984 MB / 499.7 MB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000775/0.4346, allocations: 0.6337 MB / 0.4886 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003021/0.4349, allocations: 91.42 kB / 0.4887 GB, free: 316 kB / 398.1 MB Notification: Performance of SimCode: time 1.183e-06/0.4349, allocations: 0 / 0.4887 GB, free: 316 kB / 398.1 MB Notification: Performance of Templates: time 0.05101/0.4859, allocations: 41.23 MB / 0.5289 GB, free: 7.09 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.455039056949317]