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.001729/0.001729, allocations: 108.5 kB / 19.8 MB, free: 2.516 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.002003/0.002003, allocations: 213.8 kB / 23 MB, free: 5.629 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.446/1.446, allocations: 230.2 MB / 256.2 MB, free: 8.559 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.001991/0.001991, allocations: 63.89 kB / 376.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2707, allocations: 53.33 MB / 429.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01433/0.2851, allocations: 12.24 MB / 442.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008942/0.294, allocations: 3.319 MB / 445.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002339/0.2963, allocations: 35.94 kB / 445.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002302/0.2986, allocations: 0.6946 MB / 446.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002572/0.3012, allocations: 0.7833 MB / 446.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009176/0.3021, allocations: 407.4 kB / 447.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003573/0.3057, allocations: 2.417 MB / 449.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001553/0.3072, allocations: 0.6457 MB / 450.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002121/0.3094, allocations: 0.9183 MB / 451.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/0.3111, allocations: 0.98 MB / 452.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004165/0.3115, allocations: 228 kB / 452.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006804/0.3122, allocations: 268 kB / 452.7 MB, free: 500 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005048/0.3127, allocations: 462.3 kB / 453.2 MB, free: 36 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/0.3142, allocations: 1.077 MB / 454.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004709/0.3189, allocations: 2.844 MB / 457.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3189, allocations: 0 / 457.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3189, allocations: 0 / 457.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.71e-05/0.319, allocations: 0 / 457.1 MB, free: 12.09 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.00582/0.3248, allocations: 2.209 MB / 459.3 MB, free: 9.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.3248, allocations: 12.03 kB / 459.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001522/0.3264, allocations: 291.5 kB / 459.6 MB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002991/0.3294, allocations: 1.139 MB / 460.7 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.3295, allocations: 111.5 kB / 460.9 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003339/0.3298, allocations: 167.8 kB / 461 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003989/0.3338, allocations: 1.504 MB / 462.5 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-05/0.3339, allocations: 15.88 kB / 462.5 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/0.3341, allocations: 68 kB / 462.6 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.006e-05/0.3341, allocations: 36 kB / 462.6 MB, free: 6.379 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003302/0.3374, allocations: 1.045 MB / 463.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01284/0.3503, allocations: 6.244 MB / 469.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002293/0.3526, allocations: 0.5763 MB / 470.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.3538, allocations: 434.3 kB / 470.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.993e-05/0.3539, allocations: 8.562 kB / 470.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.3539, allocations: 38.95 kB / 471 MB, free: 13.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.086e-06/0.3539, allocations: 0 / 471 MB, free: 13.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.007678/0.3616, allocations: 2.391 MB / 473.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.3617, allocations: 111.5 kB / 473.5 MB, free: 11.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002915/0.3646, allocations: 1.306 MB / 474.8 MB, free: 9.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.3647, allocations: 45.7 kB / 474.8 MB, free: 9.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009541/0.3657, allocations: 0.8787 MB / 475.7 MB, free: 8.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003374/0.366, allocations: 265.8 kB / 476 MB, free: 8.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004178/0.3664, allocations: 206.8 kB / 476.2 MB, free: 8.383 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.3667, allocations: 353.9 kB / 476.5 MB, free: 8.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008758/0.3675, allocations: 278.5 kB / 476.8 MB, free: 7.758 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.3689, allocations: 0.7421 MB / 477.5 MB, free: 6.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.3706, allocations: 1.084 MB / 478.6 MB, free: 5.512 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.3706, allocations: 4 kB / 478.6 MB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002656/0.3732, allocations: 1.26 MB / 479.9 MB, free: 4.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3732, allocations: 12 kB / 479.9 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.431e-05/0.3733, allocations: 16.5 kB / 479.9 MB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005446/0.3738, allocations: 134.5 kB / 480 MB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008569/0.3747, allocations: 255.5 kB / 480.3 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.3793, allocations: 4.635 MB / 484.9 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.3804, allocations: 71.92 kB / 485 MB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-05/0.3805, allocations: 52 kB / 485 MB, free: 14.63 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.0006568/0.3812, allocations: 353.4 kB / 485.4 MB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.3814, allocations: 147.1 kB / 485.5 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.3833, allocations: 0.8256 MB / 486.4 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.3833, allocations: 19.92 kB / 486.4 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3833, allocations: 0 / 486.4 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.3833, allocations: 4 kB / 486.4 MB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004017/0.3873, allocations: 2.315 MB / 488.7 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.3873, allocations: 8.469 kB / 488.7 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005717/0.3879, allocations: 139.7 kB / 488.8 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004803/0.3884, allocations: 138.4 kB / 489 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.096e-05/0.3885, allocations: 23.98 kB / 489 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004464/0.3929, allocations: 4.78 MB / 493.8 MB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3929, allocations: 4 kB / 493.8 MB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002503/0.3954, allocations: 1.305 MB / 495.1 MB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005855/0.396, allocations: 288 kB / 495.4 MB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.3962, allocations: 20 kB / 495.4 MB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006237/0.3968, allocations: 35.97 kB / 495.4 MB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.3969, allocations: 72.36 kB / 495.5 MB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.575e-05/0.397, allocations: 24.12 kB / 495.5 MB, free: 3.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001348/0.3983, allocations: 0.8781 MB / 496.4 MB, free: 2.609 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3983, allocations: 0 / 496.4 MB, free: 2.609 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001294/0.3996, allocations: 327.9 kB / 496.7 MB, free: 2.289 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.0002576/0.3999, allocations: 139 kB / 496.8 MB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.402, allocations: 1.092 MB / 497.9 MB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.402, allocations: 2 kB / 497.9 MB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.403, allocations: 0.6873 MB / 498.6 MB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.4045, allocations: 374 kB / 499 MB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005374/0.4099, allocations: 2.964 MB / 0.4902 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008908/0.4108, allocations: 1.213 MB / 0.4914 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000627/0.4114, allocations: 175.6 kB / 0.4915 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.4116, allocations: 95.42 kB / 0.4916 GB, free: 11.38 MB / 414.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4116, allocations: 0 / 0.4916 GB, free: 11.38 MB / 414.1 MB Notification: Performance of Templates: time 0.03825/0.4499, allocations: 18.51 MB / 0.5097 GB, free: 9.035 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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: 5.3938446957618]