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.001367/0.001367, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001391/0.001391, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.496/1.496, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.00164/0.00164, allocations: 47.94 kB / 373.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1045, allocations: 53.34 MB / 426.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2251/0.3296, allocations: 12.2 MB / 439 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00587/0.3354, allocations: 3.323 MB / 442.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.3365, allocations: 43.28 kB / 442.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.3381, allocations: 0.6831 MB / 443.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001758/0.3399, allocations: 0.7897 MB / 443.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008345/0.3407, allocations: 396.8 kB / 444.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002595/0.3433, allocations: 2.418 MB / 446.7 MB, free: 268 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/0.3444, allocations: 0.6491 MB / 447.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.3459, allocations: 0.9365 MB / 448.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.3472, allocations: 0.983 MB / 449.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002872/0.3475, allocations: 230.1 kB / 449.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005231/0.348, allocations: 270 kB / 449.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004239/0.3484, allocations: 459.3 kB / 450.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001093/0.3495, allocations: 1.076 MB / 451.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004004/0.3535, allocations: 2.832 MB / 454.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.3535, allocations: 5.156 kB / 454.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3535, allocations: 0 / 454.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.847e-05/0.3536, allocations: 0 / 454.1 MB, free: 12.71 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.004452/0.358, allocations: 2.22 MB / 456.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3581, allocations: 10.59 kB / 456.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.3591, allocations: 293.6 kB / 456.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.3611, allocations: 1.127 MB / 457.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-05/0.3612, allocations: 113.5 kB / 457.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002319/0.3614, allocations: 167.1 kB / 458 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002773/0.3642, allocations: 1.507 MB / 459.5 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.386e-05/0.3643, allocations: 16.48 kB / 459.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.3644, allocations: 62.64 kB / 459.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.674e-05/0.3644, allocations: 37.72 kB / 459.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/0.3667, allocations: 1.05 MB / 460.7 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009385/0.3761, allocations: 6.254 MB / 466.9 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.3778, allocations: 0.5699 MB / 467.5 MB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009924/0.3788, allocations: 426.7 kB / 467.9 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.949e-05/0.3788, allocations: 10.94 kB / 467.9 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.66e-05/0.3789, allocations: 43.56 kB / 468 MB, free: 3.027 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.526e-06/0.3789, allocations: 1 kB / 468 MB, free: 3.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006817/0.3857, allocations: 2.388 MB / 470.4 MB, free: 1.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.3858, allocations: 115.2 kB / 470.5 MB, free: 1.352 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002081/0.3879, allocations: 1.313 MB / 471.8 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.615e-05/0.388, allocations: 36.14 kB / 471.8 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007331/0.3887, allocations: 0.8689 MB / 472.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002443/0.389, allocations: 273.8 kB / 473 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003176/0.3893, allocations: 212.6 kB / 473.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.3895, allocations: 351.7 kB / 473.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.3901, allocations: 279.4 kB / 473.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.3913, allocations: 0.7397 MB / 474.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001778/0.393, allocations: 1.083 MB / 475.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.393, allocations: 5 kB / 475.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002615/0.3957, allocations: 1.261 MB / 476.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.3957, allocations: 12.09 kB / 476.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/0.3957, allocations: 15.06 kB / 476.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005925/0.3963, allocations: 146.6 kB / 477 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008803/0.3972, allocations: 253.3 kB / 477.3 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004739/0.4019, allocations: 4.637 MB / 481.9 MB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.4033, allocations: 64.2 kB / 482 MB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.769e-05/0.4033, allocations: 53.38 kB / 482 MB, free: 7.754 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.0007599/0.4041, allocations: 361.4 kB / 482.4 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/0.4043, allocations: 142.8 kB / 482.5 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/0.4064, allocations: 0.8301 MB / 483.4 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.4064, allocations: 11.94 kB / 483.4 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.4064, allocations: 0 / 483.4 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.4064, allocations: 3.984 kB / 483.4 MB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004348/0.4107, allocations: 2.323 MB / 485.7 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.4107, allocations: 4 kB / 485.7 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006227/0.4114, allocations: 127.8 kB / 485.8 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004905/0.4118, allocations: 140.1 kB / 486 MB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.913e-05/0.4119, allocations: 16 kB / 486 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00485/0.4167, allocations: 4.794 MB / 490.8 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.4167, allocations: 4.188 kB / 490.8 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.4195, allocations: 1.308 MB / 492.1 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000594/0.4201, allocations: 292.1 kB / 492.4 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/0.4202, allocations: 19.98 kB / 492.4 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006819/0.4209, allocations: 39.97 kB / 492.4 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.4211, allocations: 64.36 kB / 492.5 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.66e-05/0.4211, allocations: 24 kB / 492.5 MB, free: 12.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001398/0.4225, allocations: 0.8742 MB / 493.4 MB, free: 11.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4225, allocations: 0 / 493.4 MB, free: 11.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001376/0.4239, allocations: 331.9 kB / 493.7 MB, free: 11.62 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.0002616/0.4241, allocations: 146.7 kB / 493.9 MB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002141/0.4263, allocations: 1.089 MB / 494.9 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4263, allocations: 0 / 494.9 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.4274, allocations: 0.6919 MB / 495.6 MB, free: 9.605 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.4291, allocations: 372 kB / 496 MB, free: 9.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005594/0.4347, allocations: 2.941 MB / 498.9 MB, free: 6.242 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009403/0.4356, allocations: 1.217 MB / 0.4884 GB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005616/0.4362, allocations: 175.6 kB / 0.4886 GB, free: 4.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002409/0.4364, allocations: 95.36 kB / 0.4887 GB, free: 4.73 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4364, allocations: 0 / 0.4887 GB, free: 4.73 MB / 398.1 MB Notification: Performance of Templates: time 0.03465/0.4711, allocations: 18.23 MB / 0.5065 GB, free: 2.68 MB / 414.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.543450590223074]