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.001663/0.001663, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001978/0.001978, allocations: 217 kB / 23.75 MB, free: 4.668 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.001591/0.001591, allocations: 47.92 kB / 378.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2563, allocations: 53.36 MB / 431.6 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01449/0.2708, allocations: 12.26 MB / 443.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006595/0.2774, allocations: 3.319 MB / 447.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.279, allocations: 43.81 kB / 447.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00203/0.281, allocations: 0.6907 MB / 447.9 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002385/0.2834, allocations: 0.7911 MB / 448.7 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009498/0.2843, allocations: 399.5 kB / 449.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003423/0.2878, allocations: 2.421 MB / 451.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.2889, allocations: 0.6539 MB / 452.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001644/0.2906, allocations: 0.934 MB / 453.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.2919, allocations: 0.9878 MB / 454.1 MB, free: 292 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003128/0.2922, allocations: 228 kB / 454.3 MB, free: 64 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005055/0.2927, allocations: 264 kB / 454.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003755/0.2931, allocations: 466.3 kB / 455.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.2942, allocations: 1.077 MB / 456.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0035/0.2977, allocations: 2.837 MB / 459 MB, free: 11.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2977, allocations: 0 / 459 MB, free: 11.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2977, allocations: 0 / 459 MB, free: 11.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.836e-05/0.2977, allocations: 0 / 459 MB, free: 11.42 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.004193/0.3019, allocations: 2.156 MB / 461.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.302, allocations: 8.031 kB / 461.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000929/0.3029, allocations: 295.5 kB / 461.4 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.3049, allocations: 1.048 MB / 462.5 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.754e-05/0.305, allocations: 115.5 kB / 462.6 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002198/0.3052, allocations: 167.8 kB / 462.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002569/0.3078, allocations: 1.504 MB / 464.3 MB, free: 5.992 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.889e-05/0.3078, allocations: 7.953 kB / 464.3 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.3079, allocations: 64 kB / 464.3 MB, free: 5.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.478e-05/0.308, allocations: 36 kB / 464.4 MB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.31, allocations: 1.049 MB / 465.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008694/0.3187, allocations: 6.109 MB / 471.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.3203, allocations: 0.5655 MB / 472.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009258/0.3212, allocations: 438.4 kB / 472.5 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.3213, allocations: 4.656 kB / 472.5 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.3213, allocations: 43.22 kB / 472.6 MB, free: 13.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.685e-06/0.3213, allocations: 0 / 472.6 MB, free: 13.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.004932/0.3262, allocations: 2.17 MB / 474.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.416e-05/0.3263, allocations: 115.5 kB / 474.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/0.3281, allocations: 1.306 MB / 476.1 MB, free: 9.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.3282, allocations: 37.7 kB / 476.2 MB, free: 9.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006812/0.3289, allocations: 0.871 MB / 477.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002183/0.3291, allocations: 277.7 kB / 477.3 MB, free: 8.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000281/0.3294, allocations: 206.8 kB / 477.5 MB, free: 8.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3295, allocations: 349.9 kB / 477.9 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005996/0.3301, allocations: 286.5 kB / 478.1 MB, free: 7.672 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.3311, allocations: 0.7307 MB / 478.9 MB, free: 6.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.3327, allocations: 1.092 MB / 480 MB, free: 5.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.3327, allocations: 4 kB / 480 MB, free: 5.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002414/0.3351, allocations: 1.265 MB / 481.2 MB, free: 4.145 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.3351, allocations: 12 kB / 481.2 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/0.3352, allocations: 16 kB / 481.3 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005162/0.3357, allocations: 130.6 kB / 481.4 MB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000869/0.3365, allocations: 263.5 kB / 481.6 MB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004191/0.3407, allocations: 4.328 MB / 486 MB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009212/0.3417, allocations: 59.89 kB / 486 MB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.05e-05/0.3417, allocations: 63.92 kB / 486.1 MB, free: 14.93 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.0005832/0.3423, allocations: 349.4 kB / 486.4 MB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.3425, allocations: 151.1 kB / 486.6 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.3444, allocations: 0.8256 MB / 487.4 MB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.3444, allocations: 11.94 kB / 487.4 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3444, allocations: 0 / 487.4 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.3444, allocations: 7.984 kB / 487.4 MB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004026/0.3484, allocations: 2.289 MB / 489.7 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.3484, allocations: 8 kB / 489.7 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005941/0.349, allocations: 127.8 kB / 489.9 MB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004555/0.3495, allocations: 138.6 kB / 490 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.3495, allocations: 20 kB / 490 MB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004585/0.3541, allocations: 4.477 MB / 494.5 MB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.3541, allocations: 7.938 kB / 494.5 MB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.3567, allocations: 1.297 MB / 495.8 MB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005696/0.3572, allocations: 215 kB / 496 MB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/0.3575, allocations: 16 kB / 496 MB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007302/0.3582, allocations: 35.97 kB / 496.1 MB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.3583, allocations: 72.27 kB / 496.1 MB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.3584, allocations: 20 kB / 496.1 MB, free: 4.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001422/0.3598, allocations: 0.8781 MB / 497 MB, free: 3.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3598, allocations: 4 kB / 497 MB, free: 3.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001245/0.361, allocations: 328 kB / 497.3 MB, free: 3.109 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.000249/0.3613, allocations: 135.2 kB / 497.5 MB, free: 2.969 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.3634, allocations: 1.093 MB / 498.6 MB, free: 1.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3634, allocations: 0 / 498.6 MB, free: 1.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.3645, allocations: 0.6823 MB / 499.3 MB, free: 1.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.3661, allocations: 372.8 kB / 499.6 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005828/0.3719, allocations: 2.961 MB / 0.4908 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.3729, allocations: 1.213 MB / 0.492 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006555/0.3736, allocations: 179.5 kB / 0.4922 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002483/0.3739, allocations: 87.42 kB / 0.4922 GB, free: 12.22 MB / 414.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3739, allocations: 4 kB / 0.4922 GB, free: 12.21 MB / 414.1 MB Notification: Performance of Templates: time 0.03781/0.4117, allocations: 18.82 MB / 0.5106 GB, free: 9.578 MB / 430.1 MB " [Timeout remaining time 660] 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 -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/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_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: 5.401177993044257]