Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 107.6 kB / 21.18 MB, free: 0.6094 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002237/0.002237, allocations: 215 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 207.7 MB / 235.3 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 59.92 kB / 347.7 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2931, allocations: 49.15 MB / 396.9 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01096/0.304, allocations: 10.49 MB / 407.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006682/0.3107, allocations: 3.144 MB / 410.5 MB, free: 176 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002926/0.3137, allocations: 40.88 kB / 410.5 MB, free: 168 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002219/0.3159, allocations: 0.6394 MB / 411.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004001/0.3199, allocations: 0.7836 MB / 412 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001527/0.3214, allocations: 408.5 kB / 412.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003994/0.3254, allocations: 2.428 MB / 414.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.3266, allocations: 0.6113 MB / 415.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001843/0.3285, allocations: 0.9255 MB / 416.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001815/0.3303, allocations: 0.8514 MB / 417.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003505/0.3306, allocations: 228.6 kB / 417.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000691/0.3313, allocations: 271.3 kB / 417.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004227/0.3318, allocations: 461.1 kB / 418.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3329, allocations: 0.8671 MB / 419 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003319/0.3362, allocations: 2.862 MB / 421.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3362, allocations: 1.25 kB / 421.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3362, allocations: 0 / 421.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.01e-05/0.3362, allocations: 0 / 421.8 MB, free: 8.758 MB / 334.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.004043/0.3403, allocations: 2.135 MB / 424 MB, free: 7.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.3403, allocations: 8.75 kB / 424 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009677/0.3413, allocations: 292.7 kB / 424.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.3433, allocations: 1.057 MB / 425.3 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.3435, allocations: 113.4 kB / 425.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002442/0.3437, allocations: 160.5 kB / 425.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002771/0.3465, allocations: 1.604 MB / 427.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.816e-05/0.3465, allocations: 11.89 kB / 427.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.3467, allocations: 68 kB / 427.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.3467, allocations: 40 kB / 427.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/0.3489, allocations: 1.041 MB / 428.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008234/0.3571, allocations: 5.406 MB / 433.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.3587, allocations: 0.5662 MB / 434.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009681/0.3596, allocations: 426.5 kB / 434.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.3597, allocations: 4.656 kB / 434.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.3597, allocations: 43.16 kB / 434.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.785e-06/0.3597, allocations: 0 / 434.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005308/0.365, allocations: 2.166 MB / 437 MB, free: 10.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.3651, allocations: 111.5 kB / 437.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.3668, allocations: 1.172 MB / 438.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.3668, allocations: 41.7 kB / 438.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006915/0.3675, allocations: 0.8818 MB / 439.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.3677, allocations: 277.7 kB / 439.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002902/0.368, allocations: 214.8 kB / 439.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3682, allocations: 345.9 kB / 440 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006355/0.3688, allocations: 286.5 kB / 440.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.3699, allocations: 0.781 MB / 441 MB, free: 6.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.3716, allocations: 1.096 MB / 442.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.3716, allocations: 4 kB / 442.1 MB, free: 4.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002521/0.3741, allocations: 1.249 MB / 443.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.3741, allocations: 12 kB / 443.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.3742, allocations: 20.5 kB / 443.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000527/0.3747, allocations: 134.5 kB / 443.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008738/0.3756, allocations: 255.6 kB / 443.8 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004174/0.3797, allocations: 4.248 MB / 448.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.3808, allocations: 55.92 kB / 448.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.741e-05/0.3809, allocations: 56.16 kB / 448.2 MB, free: 14.45 MB / 366.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.0006315/0.3815, allocations: 357.3 kB / 448.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.3817, allocations: 139.1 kB / 448.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.3835, allocations: 0.8164 MB / 449.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.3835, allocations: 4 kB / 449.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3835, allocations: 4 kB / 449.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3836, allocations: 3.984 kB / 449.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/0.3873, allocations: 1.957 MB / 451.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.3873, allocations: 4 kB / 451.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005902/0.3879, allocations: 127.8 kB / 451.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004736/0.3884, allocations: 138.9 kB / 451.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.76e-05/0.3884, allocations: 19.98 kB / 451.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004467/0.3929, allocations: 4.4 MB / 456.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.3929, allocations: 7.938 kB / 456.1 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.3954, allocations: 1.289 MB / 457.4 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005952/0.396, allocations: 191.1 kB / 457.6 MB, free: 4.508 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.3961, allocations: 19.94 kB / 457.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006197/0.3968, allocations: 39.97 kB / 457.7 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.3969, allocations: 68.27 kB / 457.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.834e-05/0.397, allocations: 23.98 kB / 457.8 MB, free: 4.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001235/0.3982, allocations: 0.7685 MB / 458.5 MB, free: 3.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3982, allocations: 4 kB / 458.5 MB, free: 3.578 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001324/0.3995, allocations: 324 kB / 458.8 MB, free: 3.262 MB / 366.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.0002464/0.3998, allocations: 131 kB / 459 MB, free: 3.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002108/0.4019, allocations: 1.085 MB / 460.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.4019, allocations: 0 / 460.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.403, allocations: 0.6873 MB / 460.7 MB, free: 1.273 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001663/0.4046, allocations: 344.9 kB / 461.1 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005604/0.4102, allocations: 2.939 MB / 464 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006927/0.4109, allocations: 0.6337 MB / 464.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005775/0.4115, allocations: 162.8 kB / 464.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.4117, allocations: 83.42 kB / 464.9 MB, free: 13 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4117, allocations: 0 / 464.9 MB, free: 13 MB / 382.1 MB Notification: Performance of Templates: time 0.03539/0.4471, allocations: 19.61 MB / 484.5 MB, free: 9.348 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.662016456946731]