Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.00174/0.00174, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002179/0.002179, allocations: 209.4 kB / 23.74 MB, free: 4.691 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.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 8.031 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 47.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2446, allocations: 53.36 MB / 431.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003963/0.2486, allocations: 2.387 MB / 433.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2499, allocations: 0.6621 MB / 434.2 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.2501, allocations: 7.938 kB / 434.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.2503, allocations: 31.66 kB / 434.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.2505, allocations: 79.33 kB / 434.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.2508, allocations: 67.84 kB / 434.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000367/0.2512, allocations: 262.7 kB / 434.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.2514, allocations: 65.27 kB / 434.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.2516, allocations: 107.6 kB / 434.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.2518, allocations: 111.5 kB / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.57e-05/0.2519, allocations: 20 kB / 434.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.66e-05/0.252, allocations: 24 kB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.638e-05/0.252, allocations: 47.84 kB / 435 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2521, allocations: 119.3 kB / 435.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.2525, allocations: 251.4 kB / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2525, allocations: 0 / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2525, allocations: 3.938 kB / 435.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.2525, allocations: 0 / 435.4 MB, free: 2.656 MB / 334.1 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.0008029/0.2533, allocations: 449.6 kB / 435.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.2534, allocations: 12.03 kB / 435.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.695e-05/0.2534, allocations: 62.72 kB / 435.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.2536, allocations: 32.8 kB / 435.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.254, allocations: 186.8 kB / 436.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.254, allocations: 16.81 kB / 436.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.2541, allocations: 16.38 kB / 436.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.2545, allocations: 218 kB / 436.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.2545, allocations: 7.953 kB / 436.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.2545, allocations: 8 kB / 436.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2545, allocations: 4 kB / 436.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.2548, allocations: 129.6 kB / 436.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.2559, allocations: 0.6656 MB / 437.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.2561, allocations: 146.5 kB / 437.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.2563, allocations: 64.81 kB / 437.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.2563, allocations: 0 / 437.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.2563, allocations: 42.5 kB / 437.4 MB, free: 492 kB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.2563, allocations: 0 / 437.4 MB, free: 492 kB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00162/0.258, allocations: 0.7329 MB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.258, allocations: 55.39 kB / 438.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.2582, allocations: 180.4 kB / 438.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.2582, allocations: 33.64 kB / 438.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.2583, allocations: 152.4 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.934e-05/0.2584, allocations: 91.22 kB / 438.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.2585, allocations: 45.7 kB / 438.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.2586, allocations: 330.8 kB / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.2588, allocations: 59.97 kB / 439 MB, free: 14.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.2589, allocations: 92.27 kB / 439.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/0.2592, allocations: 172.1 kB / 439.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2592, allocations: 0 / 439.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004624/0.2597, allocations: 258 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.2597, allocations: 7.938 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2597, allocations: 4 kB / 439.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/0.2599, allocations: 32.83 kB / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2601, allocations: 51.92 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.2615, allocations: 1.374 MB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.2616, allocations: 16.05 kB / 441 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2616, allocations: 12 kB / 441 MB, free: 12.55 MB / 350.1 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.0001333/0.2618, allocations: 126 kB / 441.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.2618, allocations: 23.84 kB / 441.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.822e-05/0.2619, allocations: 33.91 kB / 441.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.2619, allocations: 7.938 kB / 441.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2619, allocations: 0 / 441.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.2619, allocations: 3.984 kB / 441.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009855/0.2629, allocations: 0.6121 MB / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.2629, allocations: 3.984 kB / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.2631, allocations: 43.98 kB / 441.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.2632, allocations: 40.83 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.2633, allocations: 4 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.2645, allocations: 1.381 MB / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2645, allocations: 0 / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005837/0.2651, allocations: 415.7 kB / 443.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.2651, allocations: 15.86 kB / 443.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.2652, allocations: 8 kB / 443.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.2653, allocations: 8.031 kB / 443.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.2653, allocations: 24.14 kB / 443.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.2653, allocations: 4 kB / 443.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000111/0.2654, allocations: 124.1 kB / 443.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2654, allocations: 0 / 443.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.2658, allocations: 63.98 kB / 444 MB, free: 9.41 MB / 350.1 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.0009199/0.2667, allocations: 0.9497 MB / 444.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005453/0.2672, allocations: 274.5 kB / 445.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2672, allocations: 0 / 445.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.2676, allocations: 214.5 kB / 445.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.268, allocations: 56.2 kB / 445.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.2713, allocations: 2.536 MB / 448 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.2717, allocations: 0.7482 MB / 448.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.064e-05/0.2718, allocations: 17.94 kB / 448.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.2719, allocations: 67.42 kB / 448.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2719, allocations: 0 / 448.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03659/0.3085, allocations: 5.012 MB / 453.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.7, allocations: 7.234 kB / 453.8 MB, free: 15.48 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.002778102876619]