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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 106 kB / 21.18 MB, free: 0.7188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 189.3 kB / 24.47 MB, free: 4.094 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.562/1.562, allocations: 207.6 MB / 235.2 MB, free: 10.02 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.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=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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 64.38 kB / 347.7 MB, free: 9.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3065, allocations: 49.16 MB / 396.8 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01184/0.3183, allocations: 12.17 MB / 409 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008477/0.3268, allocations: 3.325 MB / 412.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002853/0.3297, allocations: 43.44 kB / 412.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002733/0.3324, allocations: 0.6932 MB / 413.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003713/0.3361, allocations: 0.7776 MB / 413.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00191/0.338, allocations: 411.4 kB / 414.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004334/0.3424, allocations: 2.419 MB / 416.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.3436, allocations: 0.6622 MB / 417.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.3455, allocations: 0.9297 MB / 418.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00149/0.347, allocations: 0.9791 MB / 419.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003083/0.3473, allocations: 229.7 kB / 419.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000679/0.348, allocations: 267.2 kB / 419.7 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004318/0.3484, allocations: 464.2 kB / 420.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.3497, allocations: 1.082 MB / 421.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003833/0.3536, allocations: 2.842 MB / 424.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.3536, allocations: 1.062 kB / 424.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3536, allocations: 0 / 424.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.26e-05/0.3536, allocations: 0 / 424.1 MB, free: 6.484 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.004738/0.3584, allocations: 2.132 MB / 426.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.3584, allocations: 9.031 kB / 426.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.3595, allocations: 298.8 kB / 426.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00219/0.3617, allocations: 1.051 MB / 427.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.3618, allocations: 112 kB / 427.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.362, allocations: 165.7 kB / 427.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002806/0.3648, allocations: 1.502 MB / 429.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.954e-05/0.3649, allocations: 11.89 kB / 429.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.365, allocations: 64 kB / 429.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.776e-05/0.365, allocations: 44 kB / 429.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002171/0.3672, allocations: 1.041 MB / 430.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009687/0.3769, allocations: 6.109 MB / 436.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.3785, allocations: 0.5813 MB / 437.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009423/0.3794, allocations: 418.5 kB / 437.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.413e-05/0.3795, allocations: 16.66 kB / 437.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.3795, allocations: 39.22 kB / 437.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.946e-06/0.3795, allocations: 0 / 437.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005762/0.3853, allocations: 2.169 MB / 439.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.931e-05/0.3854, allocations: 111.5 kB / 439.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/0.3874, allocations: 1.314 MB / 441.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.3875, allocations: 33.7 kB / 441.3 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007798/0.3883, allocations: 0.8788 MB / 442.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.3885, allocations: 269.7 kB / 442.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003189/0.3888, allocations: 202.8 kB / 442.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.389, allocations: 357.9 kB / 443 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006029/0.3896, allocations: 278.5 kB / 443.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.3906, allocations: 0.7385 MB / 444 MB, free: 3.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.3923, allocations: 1.088 MB / 445.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.894e-06/0.3923, allocations: 4 kB / 445.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002645/0.3949, allocations: 1.264 MB / 446.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.3949, allocations: 12 kB / 446.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-05/0.395, allocations: 16.5 kB / 446.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005525/0.3955, allocations: 138.6 kB / 446.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008357/0.3964, allocations: 255.5 kB / 446.8 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004226/0.4006, allocations: 4.328 MB / 451.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.402, allocations: 63.94 kB / 451.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.83e-05/0.4021, allocations: 59.92 kB / 451.2 MB, free: 11.57 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.0008079/0.4029, allocations: 353.3 kB / 451.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/0.4031, allocations: 147.1 kB / 451.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.4051, allocations: 0.8256 MB / 452.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.4051, allocations: 11.94 kB / 452.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4051, allocations: 4 kB / 452.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.4051, allocations: 3.984 kB / 452.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/0.4097, allocations: 2.285 MB / 454.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.4097, allocations: 4.469 kB / 454.8 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005802/0.4103, allocations: 135.8 kB / 455 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000469/0.4107, allocations: 130.4 kB / 455.1 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/0.4108, allocations: 24 kB / 455.1 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005259/0.416, allocations: 4.5 MB / 459.6 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.416, allocations: 4 kB / 459.6 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002864/0.4189, allocations: 1.293 MB / 460.9 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007942/0.4197, allocations: 218.9 kB / 461.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/0.4199, allocations: 16 kB / 461.1 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006514/0.4205, allocations: 39.97 kB / 461.2 MB, free: 1.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.4207, allocations: 68.27 kB / 461.2 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-05/0.4207, allocations: 20 kB / 461.3 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001455/0.4222, allocations: 0.8781 MB / 462.1 MB, free: 64 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4222, allocations: 0 / 462.1 MB, free: 64 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001374/0.4236, allocations: 336.1 kB / 462.5 MB, free: 15.73 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.0002716/0.4238, allocations: 127.1 kB / 462.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.426, allocations: 1.08 MB / 463.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.426, allocations: 3.938 kB / 463.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.4272, allocations: 0.6964 MB / 464.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.4291, allocations: 360.8 kB / 464.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006384/0.4355, allocations: 2.955 MB / 467.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/0.4366, allocations: 1.217 MB / 468.9 MB, free: 9.109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007683/0.4374, allocations: 171.6 kB / 469.1 MB, free: 8.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/0.4376, allocations: 91.42 kB / 469.2 MB, free: 8.848 MB / 382.1 MB Notification: Performance of SimCode: time 1.223e-06/0.4376, allocations: 0 / 469.2 MB, free: 8.848 MB / 382.1 MB Notification: Performance of Templates: time 0.03887/0.4765, allocations: 18.78 MB / 487.9 MB, free: 6.027 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.5582151571288705]