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.0008595/0.0008595, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008133/0.0008133, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8458/0.8458, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 1.593e-06/1.593e-06, allocations: 0 / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.82e-05/1.98e-05, allocations: 2.281 kB / 324.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002504/0.002524, allocations: 2.252 MB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008738/0.003398, allocations: 0.6231 MB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.003516, allocations: 11.94 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.003644, allocations: 31.66 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.00378, allocations: 83.28 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.00404, allocations: 63.78 kB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002244/0.004264, allocations: 278.6 kB / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.004415, allocations: 56.5 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.004631, allocations: 163.6 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.936e-05/0.00473, allocations: 75.78 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.651e-05/0.004757, allocations: 20 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.111e-05/0.004808, allocations: 24 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.89e-05/0.004837, allocations: 51.77 kB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.779e-05/0.004895, allocations: 83.81 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.00514, allocations: 247.1 kB / 328.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.005144, allocations: 0 / 328.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.005145, allocations: 0 / 328.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.00515, allocations: 0 / 328.6 MB, free: 11.76 MB / 298.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.0005089/0.005659, allocations: 460.5 kB / 329 MB, free: 11.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.005706, allocations: 8.031 kB / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.207e-05/0.005748, allocations: 62.73 kB / 329.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.005862, allocations: 32.78 kB / 329.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.006102, allocations: 178.1 kB / 329.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.006116, allocations: 16.88 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.006151, allocations: 28.36 kB / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.006526, allocations: 203.4 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.00654, allocations: 8.125 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.006554, allocations: 12.12 kB / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.00656, allocations: 8 kB / 329.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.006722, allocations: 129.9 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000657/0.007379, allocations: 0.6231 MB / 330.3 MB, free: 9.895 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.007566, allocations: 145.7 kB / 330.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.179e-05/0.007648, allocations: 68.75 kB / 330.5 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.007666, allocations: 4 kB / 330.5 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.007686, allocations: 34.56 kB / 330.6 MB, free: 9.629 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.142e-06/0.007687, allocations: 4 kB / 330.6 MB, free: 9.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009822/0.008669, allocations: 0.735 MB / 331.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.008704, allocations: 59.33 kB / 331.4 MB, free: 8.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.008819, allocations: 176.4 kB / 331.6 MB, free: 8.578 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.008831, allocations: 33.7 kB / 331.6 MB, free: 8.539 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.455e-05/0.008896, allocations: 144.4 kB / 331.7 MB, free: 8.395 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.07e-05/0.008937, allocations: 95.22 kB / 331.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.008984, allocations: 45.7 kB / 331.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.335e-05/0.009057, allocations: 330.8 kB / 332.2 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.608e-05/0.009133, allocations: 59.97 kB / 332.2 MB, free: 7.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.754e-05/0.009221, allocations: 100.2 kB / 332.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.009393, allocations: 176.7 kB / 332.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.009394, allocations: 4 kB / 332.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002627/0.009657, allocations: 250.1 kB / 332.8 MB, free: 7.301 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.00967, allocations: 4 kB / 332.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.009677, allocations: 4 kB / 332.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001176/0.009795, allocations: 28.84 kB / 332.8 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.009927, allocations: 59.84 kB / 332.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008029/0.01073, allocations: 1.366 MB / 334.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.996e-05/0.01079, allocations: 11.97 kB / 334.2 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.0108, allocations: 16 kB / 334.3 MB, free: 5.688 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 9.054e-05/0.01089, allocations: 137.8 kB / 334.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.01092, allocations: 23.86 kB / 334.4 MB, free: 5.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.775e-05/0.01094, allocations: 21.97 kB / 334.4 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.01094, allocations: 4.062 kB / 334.4 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.01095, allocations: 4 kB / 334.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.01095, allocations: 7.922 kB / 334.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005531/0.01151, allocations: 0.5885 MB / 335 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.01151, allocations: 4 kB / 335 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.01163, allocations: 43.91 kB / 335.1 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.816e-05/0.01171, allocations: 44.89 kB / 335.1 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.01172, allocations: 4 kB / 335.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009393/0.01266, allocations: 1.377 MB / 336.5 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01266, allocations: 0 / 336.5 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003421/0.013, allocations: 407 kB / 336.9 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.035e-05/0.01302, allocations: 23.92 kB / 336.9 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.01303, allocations: 4 kB / 336.9 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.977e-05/0.01309, allocations: 8.031 kB / 336.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.01314, allocations: 19.97 kB / 337 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.01314, allocations: 4 kB / 337 MB, free: 2.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.772e-05/0.01321, allocations: 133.2 kB / 337.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01321, allocations: 0 / 337.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002036/0.01341, allocations: 60 kB / 337.2 MB, free: 2.582 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.0005162/0.01393, allocations: 0.9414 MB / 338.1 MB, free: 1.605 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.01429, allocations: 274.6 kB / 338.4 MB, free: 1.324 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01429, allocations: 0 / 338.4 MB, free: 1.324 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.01444, allocations: 206.9 kB / 338.6 MB, free: 1.105 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.01472, allocations: 54.72 kB / 338.6 MB, free: 1.055 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.01674, allocations: 2.444 MB / 341.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.471e-05/0.01682, allocations: 138.5 kB / 341.2 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.901e-05/0.01688, allocations: 25.92 kB / 341.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.407e-05/0.01695, allocations: 72.48 kB / 341.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01695, allocations: 0 / 341.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02484/0.0418, allocations: 5.604 MB / 346.9 MB, free: 8.777 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.697/6.739, allocations: 22.62 kB / 346.9 MB, free: 8.762 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/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: 8.325963783077896]