Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.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.001293/0.001293, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001419/0.001419, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 49.81 kB / 347.2 MB, free: 9.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.237, allocations: 49.16 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003037/0.2401, allocations: 2.234 MB / 398.6 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009481/0.241, allocations: 0.6007 MB / 399.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.2411, allocations: 4.344 kB / 399.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.2413, allocations: 42.91 kB / 399.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.2414, allocations: 76.84 kB / 399.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001967/0.2416, allocations: 55.19 kB / 399.4 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.2419, allocations: 271.1 kB / 399.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.242, allocations: 70.39 kB / 399.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.2422, allocations: 118.2 kB / 399.8 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.2423, allocations: 94.08 kB / 399.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.2424, allocations: 24.75 kB / 399.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.506e-05/0.2424, allocations: 21 kB / 399.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.186e-05/0.2425, allocations: 55.06 kB / 400 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.362e-05/0.2426, allocations: 100.7 kB / 400.1 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003056/0.2429, allocations: 268.9 kB / 400.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2429, allocations: 4.547 kB / 400.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2429, allocations: 1.406 kB / 400.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.2429, allocations: 0 / 400.4 MB, free: 6.367 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006226/0.2435, allocations: 458.8 kB / 400.8 MB, free: 5.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.2436, allocations: 13.58 kB / 400.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.589e-05/0.2436, allocations: 60.19 kB / 400.9 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.768e-05/0.2436, allocations: 29.88 kB / 400.9 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.2439, allocations: 179.2 kB / 401.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.244, allocations: 16.78 kB / 401.1 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.53e-05/0.244, allocations: 31.91 kB / 401.1 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003523/0.2444, allocations: 196 kB / 401.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.2444, allocations: 1.719 kB / 401.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.2444, allocations: 14.16 kB / 401.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.2444, allocations: 5.062 kB / 401.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.2447, allocations: 141.3 kB / 401.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000812/0.2455, allocations: 0.5373 MB / 402 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002761/0.2458, allocations: 165.2 kB / 402.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.2459, allocations: 88.41 kB / 402.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.2459, allocations: 7.344 kB / 402.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2459, allocations: 37.39 kB / 402.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.482e-06/0.2459, allocations: 0 / 402.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001635/0.2476, allocations: 0.9193 MB / 403.2 MB, free: 4.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.2476, allocations: 59.03 kB / 403.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.2477, allocations: 189.1 kB / 403.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.2478, allocations: 30.7 kB / 403.5 MB, free: 4.262 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.308e-05/0.2478, allocations: 144.4 kB / 403.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.311e-05/0.2479, allocations: 114.1 kB / 403.8 MB, free: 4.043 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.657e-05/0.2479, allocations: 51.95 kB / 403.8 MB, free: 4.008 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.58e-05/0.248, allocations: 335.9 kB / 404.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.2481, allocations: 68.44 kB / 404.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.2482, allocations: 104 kB / 404.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.2485, allocations: 203.4 kB / 404.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2485, allocations: 0 / 404.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004353/0.2489, allocations: 291.2 kB / 404.8 MB, free: 3.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.249, allocations: 10.28 kB / 404.8 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.249, allocations: 0.9375 kB / 404.8 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001675/0.2491, allocations: 41.47 kB / 404.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.2494, allocations: 56.75 kB / 404.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.2504, allocations: 1.633 MB / 406.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.2505, allocations: 13.98 kB / 406.5 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.2505, allocations: 6.625 kB / 406.5 MB, free: 1.801 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.2507, allocations: 146 kB / 406.7 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/0.2507, allocations: 27.56 kB / 406.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.908e-05/0.2507, allocations: 32.56 kB / 406.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2507, allocations: 2.531 kB / 406.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2508, allocations: 1.094 kB / 406.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.2508, allocations: 3.5 kB / 406.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008874/0.2516, allocations: 0.7184 MB / 407.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2517, allocations: 1.375 kB / 407.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.2519, allocations: 62.03 kB / 407.5 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.252, allocations: 35.53 kB / 407.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.252, allocations: 7.359 kB / 407.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008961/0.2529, allocations: 1.383 MB / 409 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.2529, allocations: 4.453 kB / 409 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007157/0.2536, allocations: 495.2 kB / 409.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.281e-05/0.2537, allocations: 24.06 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.2537, allocations: 8.875 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.2539, allocations: 7.609 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.277e-05/0.2539, allocations: 24.14 kB / 409.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.2539, allocations: 10.66 kB / 409.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001175/0.2541, allocations: 131.6 kB / 409.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2541, allocations: 0 / 409.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003901/0.2544, allocations: 66.03 kB / 409.7 MB, free: 15.3 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.0009954/0.2554, allocations: 1.011 MB / 410.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006034/0.256, allocations: 327.2 kB / 411 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2561, allocations: 1.906 kB / 411 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003527/0.2564, allocations: 243.4 kB / 411.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.2568, allocations: 47 kB / 411.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.2605, allocations: 2.747 MB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.2607, allocations: 151.3 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.2608, allocations: 25.23 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.2609, allocations: 76.52 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2609, allocations: 0 / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04022/0.3011, allocations: 5.96 MB / 420.3 MB, free: 8.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.18, allocations: 5.047 kB / 420.3 MB, free: 8.988 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.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.766484428197145]