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.001287/0.001287, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001385/0.001385, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.405/1.405, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001559/0.001559, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09448, allocations: 53.32 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.004017/0.09849, allocations: 2.384 MB / 428.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.0999, allocations: 0.6466 MB / 429.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.1001, allocations: 7.938 kB / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.1003, allocations: 39.59 kB / 429.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.1005, allocations: 67.41 kB / 429.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.1008, allocations: 63.86 kB / 429.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.1012, allocations: 254.8 kB / 429.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.1014, allocations: 64.36 kB / 429.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.1016, allocations: 119.6 kB / 429.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.1018, allocations: 107.5 kB / 430 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.1018, allocations: 20 kB / 430.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.137e-05/0.1019, allocations: 20 kB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.921e-05/0.1019, allocations: 51.78 kB / 430.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.1021, allocations: 115.5 kB / 430.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.1024, allocations: 250.9 kB / 430.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1024, allocations: 0 / 430.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1024, allocations: 0 / 430.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1024, allocations: 7.984 kB / 430.5 MB, free: 0.5742 MB / 350.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.0008149/0.1033, allocations: 0.5182 MB / 431 MB, free: 8 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.1033, allocations: 8.031 kB / 431 MB, free: 0 / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1715/0.2747, allocations: 58.66 kB / 431.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.275, allocations: 30.45 kB / 431.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.2753, allocations: 234.6 kB / 431.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.2754, allocations: 17.66 kB / 431.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/0.2754, allocations: 22.14 kB / 431.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004338/0.2759, allocations: 213.5 kB / 431.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.2759, allocations: 10.98 kB / 431.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.2759, allocations: 12.72 kB / 431.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.2759, allocations: 4.812 kB / 431.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.2762, allocations: 126.5 kB / 431.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00098/0.2772, allocations: 0.7042 MB / 432.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.2775, allocations: 141.9 kB / 432.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.2776, allocations: 70.86 kB / 432.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.2776, allocations: 1.531 kB / 432.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/0.2777, allocations: 33.69 kB / 432.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.753e-06/0.2777, allocations: 0.875 kB / 432.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001418/0.2791, allocations: 0.8865 MB / 433.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.2791, allocations: 54.34 kB / 433.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.2793, allocations: 182.6 kB / 433.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.2793, allocations: 30.52 kB / 433.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.435e-05/0.2794, allocations: 150.1 kB / 434 MB, free: 9.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.2794, allocations: 92.97 kB / 434.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-05/0.2795, allocations: 48.77 kB / 434.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.68e-05/0.2795, allocations: 329.2 kB / 434.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.2797, allocations: 56.02 kB / 434.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.2798, allocations: 102.6 kB / 434.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.28, allocations: 173.5 kB / 434.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.28, allocations: 0 / 434.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004093/0.2804, allocations: 252.5 kB / 435 MB, free: 9.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.2804, allocations: 6.281 kB / 435 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2805, allocations: 5.031 kB / 435 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001581/0.2806, allocations: 41.83 kB / 435.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.2808, allocations: 49.61 kB / 435.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008611/0.2817, allocations: 1.482 MB / 436.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.2818, allocations: 8.156 kB / 436.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.2818, allocations: 13.59 kB / 436.6 MB, free: 7.746 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 9.407e-05/0.2819, allocations: 137.3 kB / 436.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.342e-05/0.2819, allocations: 16.94 kB / 436.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.828e-05/0.282, allocations: 22.09 kB / 436.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.282, allocations: 3.5 kB / 436.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.282, allocations: 5.094 kB / 436.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.282, allocations: 8.469 kB / 436.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007922/0.2828, allocations: 0.6474 MB / 437.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2828, allocations: 1.125 kB / 437.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.283, allocations: 46.25 kB / 437.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001295/0.2831, allocations: 34.36 kB / 437.5 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.2832, allocations: 5.125 kB / 437.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008052/0.284, allocations: 1.486 MB / 439 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.284, allocations: 0.9375 kB / 439 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004939/0.2845, allocations: 407.5 kB / 439.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.2845, allocations: 92.03 kB / 439.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.2845, allocations: 6.891 kB / 439.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.2846, allocations: 10.12 kB / 439.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.2847, allocations: 21.98 kB / 439.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.2847, allocations: 9.828 kB / 439.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.574e-05/0.2848, allocations: 125.6 kB / 439.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2848, allocations: 0 / 439.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003363/0.2851, allocations: 58.12 kB / 439.7 MB, free: 5.176 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.0006512/0.2858, allocations: 0.9414 MB / 440.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004898/0.2863, allocations: 286.8 kB / 441 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2863, allocations: 4.25 kB / 441 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.2865, allocations: 210 kB / 441.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004043/0.287, allocations: 45.92 kB / 441.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.2896, allocations: 2.547 MB / 443.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.2898, allocations: 0.7473 MB / 444.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.445e-05/0.2899, allocations: 23.8 kB / 444.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.183e-05/0.29, allocations: 69.12 kB / 444.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.29, allocations: 0 / 444.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.3239, allocations: 4.813 MB / 449.4 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.37, allocations: 8.922 kB / 449.4 MB, free: 0.7656 MB / 350.1 MB " [Timeout remaining time 650] (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: 12.713133685989305]