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.001344/0.001344, allocations: 84.55 kB / 20.68 MB, free: 1.023 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.001443/0.001443, allocations: 163.9 kB / 23.95 MB, free: 4.156 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: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.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 1.282e-06/1.282e-06, allocations: 0 / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.101e-05, allocations: 11.03 kB / 325.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01294/0.01296, allocations: 10.58 MB / 335.7 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008006/0.02096, allocations: 3.147 MB / 338.8 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002316/0.02328, allocations: 43.88 kB / 338.9 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002037/0.02532, allocations: 0.6402 MB / 339.5 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002613/0.02793, allocations: 0.8279 MB / 340.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008807/0.02881, allocations: 406.1 kB / 340.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003914/0.03272, allocations: 2.512 MB / 343.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.03384, allocations: 0.607 MB / 343.8 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002367/0.03621, allocations: 1.395 MB / 345.2 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000996/0.0372, allocations: 0.7126 MB / 345.9 MB, free: 164 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003096/0.03751, allocations: 228 kB / 346.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005115/0.03802, allocations: 267.9 kB / 346.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003833/0.03841, allocations: 470.2 kB / 346.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008844/0.03929, allocations: 0.7404 MB / 347.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003109/0.0424, allocations: 2.839 MB / 350.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.04241, allocations: 0 / 350.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.04241, allocations: 0 / 350.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.952e-05/0.04245, allocations: 0 / 350.5 MB, free: 11.62 MB / 318.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.003751/0.0462, allocations: 2.118 MB / 352.6 MB, free: 9.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.04624, allocations: 12.03 kB / 352.6 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009289/0.04717, allocations: 295.5 kB / 352.9 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.04905, allocations: 1.039 MB / 353.9 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.04917, allocations: 119.5 kB / 354 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000229/0.04939, allocations: 164.2 kB / 354.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002761/0.05216, allocations: 1.609 MB / 355.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.666e-05/0.0522, allocations: 7.953 kB / 355.8 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.05233, allocations: 60 kB / 355.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.92e-05/0.05237, allocations: 40 kB / 355.9 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00217/0.05454, allocations: 1.057 MB / 357 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008297/0.06284, allocations: 5.416 MB / 362.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.06441, allocations: 0.5661 MB / 363 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009689/0.06538, allocations: 426.5 kB / 363.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.851e-05/0.06543, allocations: 8.656 kB / 363.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.06547, allocations: 43.22 kB / 363.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 1.994e-06/0.06547, allocations: 0 / 363.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.005104/0.07057, allocations: 2.158 MB / 365.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.07064, allocations: 111.5 kB / 365.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001666/0.07231, allocations: 1.18 MB / 366.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.07236, allocations: 37.7 kB / 366.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007531/0.07312, allocations: 0.8779 MB / 367.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/0.07338, allocations: 265.7 kB / 368 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003411/0.07372, allocations: 206.8 kB / 368.2 MB, free: 9.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.07392, allocations: 349.9 kB / 368.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.07458, allocations: 286.5 kB / 368.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.07571, allocations: 0.7886 MB / 369.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.07738, allocations: 1.088 MB / 370.7 MB, free: 6.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.07739, allocations: 8 kB / 370.8 MB, free: 6.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002499/0.07989, allocations: 1.249 MB / 372 MB, free: 5.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.07992, allocations: 15.98 kB / 372 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.07994, allocations: 19.94 kB / 372 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005175/0.08045, allocations: 131 kB / 372.2 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008985/0.08135, allocations: 255.6 kB / 372.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004217/0.08557, allocations: 4.248 MB / 376.7 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009357/0.08651, allocations: 56.09 kB / 376.7 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-05/0.0866, allocations: 56.05 kB / 376.8 MB, free: 15.96 MB / 350.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.000647/0.08725, allocations: 360.6 kB / 377.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/0.08745, allocations: 135.1 kB / 377.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.08936, allocations: 0.8164 MB / 378.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.08937, allocations: 8 kB / 378.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.08937, allocations: 0 / 378.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.08938, allocations: 3.984 kB / 378.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.09315, allocations: 1.957 MB / 380 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.09316, allocations: 4 kB / 380 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/0.09378, allocations: 127.8 kB / 380.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005257/0.0943, allocations: 142.9 kB / 380.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/0.09435, allocations: 19.98 kB / 380.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004651/0.09901, allocations: 4.393 MB / 384.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.09901, allocations: 4 kB / 384.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002609/0.1016, allocations: 1.281 MB / 386 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005203/0.1021, allocations: 199 kB / 386.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.1023, allocations: 16 kB / 386.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006821/0.103, allocations: 39.97 kB / 386.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.1031, allocations: 68.27 kB / 386.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.897e-05/0.1032, allocations: 20 kB / 386.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001226/0.1044, allocations: 0.7724 MB / 387.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1044, allocations: 4 kB / 387.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00125/0.1057, allocations: 320 kB / 387.4 MB, free: 4.801 MB / 350.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.0002624/0.1059, allocations: 143 kB / 387.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002106/0.108, allocations: 1.084 MB / 388.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.108, allocations: 0 / 388.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.1091, allocations: 0.6886 MB / 389.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.1108, allocations: 343.2 kB / 389.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005493/0.1163, allocations: 2.772 MB / 392.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007533/0.117, allocations: 0.6337 MB / 393.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006101/0.1176, allocations: 170.8 kB / 393.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/0.1179, allocations: 88.48 kB / 393.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of SimCode: time 1.593e-06/0.1179, allocations: 0 / 393.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of Templates: time 0.03448/0.1523, allocations: 17.24 MB / 410.6 MB, free: 13.72 MB / 382.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.2408252358436584]