Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001746/0.001746, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002097/0.002097, allocations: 214.8 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.67/1.67, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 43.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3807, allocations: 53.38 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01324/0.394, allocations: 10.57 MB / 442.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007084/0.401, allocations: 3.143 MB / 446.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.403, allocations: 43.81 kB / 446.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002238/0.4052, allocations: 0.6323 MB / 446.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002902/0.4081, allocations: 0.7872 MB / 447.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009788/0.4091, allocations: 403.5 kB / 447.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003453/0.4126, allocations: 2.417 MB / 450.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.4137, allocations: 0.6461 MB / 451 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.4155, allocations: 0.9456 MB / 451.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.4168, allocations: 0.9762 MB / 452.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003547/0.4172, allocations: 228 kB / 453.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007114/0.4179, allocations: 272 kB / 453.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004691/0.4183, allocations: 466.3 kB / 453.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.4196, allocations: 0.8673 MB / 454.7 MB, free: 216 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003724/0.4234, allocations: 2.856 MB / 457.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4234, allocations: 4 kB / 457.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4234, allocations: 0 / 457.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.534e-05/0.4234, allocations: 0 / 457.6 MB, free: 13.34 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.004467/0.4279, allocations: 2.145 MB / 459.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.428, allocations: 8.031 kB / 459.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.429, allocations: 291.5 kB / 460 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002325/0.4313, allocations: 1.048 MB / 461.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.4314, allocations: 115.5 kB / 461.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002772/0.4317, allocations: 163.8 kB / 461.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003076/0.4348, allocations: 1.601 MB / 462.9 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-05/0.4348, allocations: 11.92 kB / 462.9 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.435, allocations: 71.94 kB / 463 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.831e-05/0.435, allocations: 36 kB / 463 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.4373, allocations: 1.045 MB / 464.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009001/0.4463, allocations: 5.406 MB / 469.5 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.448, allocations: 0.5701 MB / 470.1 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/0.4489, allocations: 430.5 kB / 470.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.449, allocations: 8.641 kB / 470.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.449, allocations: 47.16 kB / 470.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.956e-06/0.449, allocations: 0 / 470.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005336/0.4544, allocations: 2.158 MB / 472.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.12e-05/0.4544, allocations: 115.5 kB / 472.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.4562, allocations: 1.172 MB / 474 MB, free: 12.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.619e-05/0.4563, allocations: 37.7 kB / 474 MB, free: 12.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007822/0.4571, allocations: 0.8818 MB / 474.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.4573, allocations: 273.7 kB / 475.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003292/0.4577, allocations: 210.8 kB / 475.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.4579, allocations: 349.9 kB / 475.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.4585, allocations: 282.5 kB / 476 MB, free: 10.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.4596, allocations: 0.7926 MB / 476.8 MB, free: 9.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.4613, allocations: 1.085 MB / 477.9 MB, free: 8.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/0.4613, allocations: 4 kB / 477.9 MB, free: 8.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0028/0.4641, allocations: 1.257 MB / 479.1 MB, free: 6.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.4641, allocations: 12 kB / 479.1 MB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.4641, allocations: 12 kB / 479.2 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005681/0.4647, allocations: 139 kB / 479.3 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008912/0.4656, allocations: 255.6 kB / 479.5 MB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/0.4698, allocations: 4.255 MB / 483.8 MB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.471, allocations: 51.97 kB / 483.8 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-05/0.4711, allocations: 52 kB / 483.9 MB, free: 1.664 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.0006698/0.4717, allocations: 361.5 kB / 484.2 MB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/0.4719, allocations: 131.2 kB / 484.4 MB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001869/0.4738, allocations: 0.8203 MB / 485.2 MB, free: 340 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.4738, allocations: 4 kB / 485.2 MB, free: 336 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4738, allocations: 4 kB / 485.2 MB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.4738, allocations: 3.984 kB / 485.2 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003946/0.4778, allocations: 1.961 MB / 487.2 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/0.4778, allocations: 8 kB / 487.2 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006203/0.4784, allocations: 127.8 kB / 487.3 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006005/0.479, allocations: 138.6 kB / 487.4 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/0.4791, allocations: 16 kB / 487.5 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004726/0.4838, allocations: 4.397 MB / 491.8 MB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.259e-06/0.4838, allocations: 11.88 kB / 491.9 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002806/0.4866, allocations: 1.296 MB / 493.2 MB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006167/0.4872, allocations: 191.1 kB / 493.3 MB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.4874, allocations: 16 kB / 493.4 MB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006328/0.488, allocations: 43.97 kB / 493.4 MB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.4881, allocations: 68.27 kB / 493.5 MB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.4882, allocations: 20 kB / 493.5 MB, free: 7.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001228/0.4894, allocations: 0.7724 MB / 494.3 MB, free: 6.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4894, allocations: 0 / 494.3 MB, free: 6.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001384/0.4908, allocations: 328 kB / 494.6 MB, free: 6.461 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.0002814/0.4911, allocations: 131.1 kB / 494.7 MB, free: 6.324 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.4932, allocations: 1.084 MB / 495.8 MB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.4932, allocations: 0 / 495.8 MB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.4943, allocations: 0.6958 MB / 496.5 MB, free: 4.473 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.496, allocations: 338.2 kB / 496.8 MB, free: 4.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005893/0.5019, allocations: 2.937 MB / 499.8 MB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007906/0.5027, allocations: 0.6298 MB / 0.4887 GB, free: 484 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007382/0.5034, allocations: 158.8 kB / 0.4888 GB, free: 320 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.5037, allocations: 83.42 kB / 0.4889 GB, free: 240 kB / 398.1 MB Notification: Performance of SimCode: time 1.573e-06/0.5037, allocations: 7.938 kB / 0.4889 GB, free: 232 kB / 398.1 MB Notification: Performance of Templates: time 0.03789/0.5416, allocations: 19.99 MB / 0.5084 GB, free: 12.56 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 6.0511985149933025]