Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.000822/0.000822, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0007983/0.0007983, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8692/0.8692, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 318.4 MB, free: 6.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876e-05/2.005e-05, allocations: 6.219 kB / 318.4 MB, free: 6.262 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002481/0.002501, allocations: 2.223 MB / 320.6 MB, free: 4.023 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008647/0.003366, allocations: 0.5569 MB / 321.2 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.003504, allocations: 7.938 kB / 321.2 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.00364, allocations: 35.66 kB / 321.2 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001316/0.003772, allocations: 83.2 kB / 321.3 MB, free: 3.336 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.003981, allocations: 51.92 kB / 321.4 MB, free: 3.285 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.004227, allocations: 270.6 kB / 321.6 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.004372, allocations: 64.47 kB / 321.7 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.004563, allocations: 155.6 kB / 321.9 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.919e-05/0.004663, allocations: 75.78 kB / 321.9 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.004697, allocations: 20 kB / 322 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.135e-05/0.004718, allocations: 20 kB / 322 MB, free: 2.688 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.428e-05/0.004753, allocations: 43.83 kB / 322 MB, free: 2.645 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.726e-05/0.00482, allocations: 87.75 kB / 322.1 MB, free: 2.559 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.005059, allocations: 239.2 kB / 322.3 MB, free: 2.324 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.005063, allocations: 7.984 kB / 322.3 MB, free: 2.316 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.005065, allocations: 0 / 322.3 MB, free: 2.316 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.00507, allocations: 0 / 322.3 MB, free: 2.316 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005219/0.005592, allocations: 445.7 kB / 322.8 MB, free: 1.852 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.00563, allocations: 8.922 kB / 322.8 MB, free: 1.844 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.181e-05/0.005672, allocations: 54.73 kB / 322.8 MB, free: 1.781 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.005714, allocations: 40.73 kB / 322.9 MB, free: 1.742 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.005959, allocations: 174.1 kB / 323 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.005973, allocations: 12.88 kB / 323.1 MB, free: 1.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.006008, allocations: 28.33 kB / 323.1 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.006269, allocations: 219.3 kB / 323.3 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.006282, allocations: 192 / 323.3 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.006299, allocations: 20.06 kB / 323.3 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.006306, allocations: 4 kB / 323.3 MB, free: 1.254 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001609/0.006466, allocations: 125.9 kB / 323.5 MB, free: 1.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006933/0.00716, allocations: 0.6192 MB / 324.1 MB, free: 476 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.00735, allocations: 138.5 kB / 324.2 MB, free: 328 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.596e-05/0.007426, allocations: 64.83 kB / 324.3 MB, free: 260 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.007444, allocations: 8 kB / 324.3 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.007464, allocations: 34.56 kB / 324.3 MB, free: 208 kB / 282.7 MB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.007466, allocations: 0 / 324.3 MB, free: 208 kB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.00103/0.008496, allocations: 0.733 MB / 325 MB, free: 15.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.008525, allocations: 55.34 kB / 325.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.008638, allocations: 170.8 kB / 325.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.008653, allocations: 29.7 kB / 325.3 MB, free: 15.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.398e-05/0.008717, allocations: 152.4 kB / 325.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.008763, allocations: 87.22 kB / 325.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.008815, allocations: 49.66 kB / 325.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.085e-05/0.008896, allocations: 334.8 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.057e-05/0.008976, allocations: 55.91 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.6e-05/0.009062, allocations: 101.3 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.009236, allocations: 176.7 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.009238, allocations: 0 / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002675/0.009505, allocations: 246.1 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.00952, allocations: 8 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.009525, allocations: 0 / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001187/0.009643, allocations: 36.97 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.009779, allocations: 51.91 kB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000818/0.0106, allocations: 1.373 MB / 327.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.437e-05/0.01067, allocations: 11.94 kB / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.01068, allocations: 4 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.01079, allocations: 145.8 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.453e-05/0.01081, allocations: 15.91 kB / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.985e-05/0.01084, allocations: 25.97 kB / 328.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.01085, allocations: 4 kB / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.01085, allocations: 0 / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.01086, allocations: 11.86 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005709/0.01143, allocations: 0.5958 MB / 328.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.01143, allocations: 0 / 328.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.01155, allocations: 55.97 kB / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.662e-05/0.01163, allocations: 32.83 kB / 328.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.01164, allocations: 4 kB / 328.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006844/0.01232, allocations: 1.374 MB / 330.2 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.01232, allocations: 0 / 330.2 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003556/0.01268, allocations: 416.9 kB / 330.6 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.831e-05/0.0127, allocations: 11.91 kB / 330.6 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.01271, allocations: 8 kB / 330.6 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.286e-05/0.01278, allocations: 8.031 kB / 330.6 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.01282, allocations: 15.97 kB / 330.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.01283, allocations: 8 kB / 330.7 MB, free: 9.367 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.434e-05/0.01289, allocations: 127.8 kB / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01289, allocations: 0 / 330.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002116/0.0131, allocations: 60 kB / 330.9 MB, free: 9.184 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005402/0.01364, allocations: 0.9376 MB / 331.8 MB, free: 8.211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003589/0.014, allocations: 278.5 kB / 332.1 MB, free: 7.926 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.01401, allocations: 0 / 332.1 MB, free: 7.926 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.01416, allocations: 210.8 kB / 332.3 MB, free: 7.707 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.01444, allocations: 51.02 kB / 332.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.0164, allocations: 2.446 MB / 334.8 MB, free: 5.086 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.866e-05/0.01649, allocations: 138.4 kB / 334.9 MB, free: 4.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.982e-05/0.01655, allocations: 17.95 kB / 334.9 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.953e-05/0.01663, allocations: 72.47 kB / 335 MB, free: 4.84 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01663, allocations: 0 / 335 MB, free: 4.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.03851, allocations: 5.582 MB / 340.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.719/6.758, allocations: 4 kB / 340.6 MB, free: 15.4 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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: 8.361278303898871]