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.001419/0.001419, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 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.001492/0.001492, allocations: 191.7 kB / 24.5 MB, free: 4.02 MB / 14.72 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 1.32/1.32, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 47.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2231, allocations: 52.18 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003497/0.2266, allocations: 2.382 MB / 425.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009175/0.2276, allocations: 0.5921 MB / 426.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.975e-05/0.2277, allocations: 7.938 kB / 426.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.2278, allocations: 31.66 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.2279, allocations: 71.36 kB / 426.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000181/0.2281, allocations: 55.92 kB / 426.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002923/0.2284, allocations: 258.8 kB / 426.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.2286, allocations: 64.55 kB / 426.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.2287, allocations: 103.6 kB / 427 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.2289, allocations: 107.5 kB / 427.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.138e-05/0.2289, allocations: 20 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.535e-05/0.2289, allocations: 20 kB / 427.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.229, allocations: 39.8 kB / 427.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.2291, allocations: 123.4 kB / 427.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.2294, allocations: 251.7 kB / 427.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2294, allocations: 0 / 427.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2294, allocations: 0 / 427.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.2294, allocations: 0 / 427.5 MB, free: 10.5 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.0006793/0.2301, allocations: 449.6 kB / 428 MB, free: 10.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2301, allocations: 12.03 kB / 428 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.773e-05/0.2301, allocations: 12.56 kB / 428 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.063e-05/0.2302, allocations: 54.73 kB / 428 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.934e-05/0.2302, allocations: 28.75 kB / 428.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.2305, allocations: 174.8 kB / 428.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.2305, allocations: 20.75 kB / 428.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.2306, allocations: 24.38 kB / 428.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/0.2309, allocations: 209.8 kB / 428.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.2309, allocations: 7.953 kB / 428.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.231, allocations: 8 kB / 428.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.231, allocations: 7.938 kB / 428.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.2312, allocations: 125.7 kB / 428.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009731/0.2322, allocations: 0.6656 MB / 429.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.2324, allocations: 146.5 kB / 429.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.2326, allocations: 60.83 kB / 429.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2326, allocations: 4 kB / 429.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.2326, allocations: 34.56 kB / 429.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.272e-06/0.2326, allocations: 0 / 429.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001462/0.2341, allocations: 0.7429 MB / 430.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.2341, allocations: 55.41 kB / 430.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.2343, allocations: 171.3 kB / 430.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.2343, allocations: 25.7 kB / 430.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.705e-05/0.2344, allocations: 156.3 kB / 430.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.462e-05/0.2345, allocations: 95.2 kB / 430.8 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/0.2346, allocations: 45.7 kB / 430.8 MB, free: 6.961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2347, allocations: 326.8 kB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.2348, allocations: 55.91 kB / 431.2 MB, free: 6.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.235, allocations: 113.3 kB / 431.3 MB, free: 6.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.2352, allocations: 160.2 kB / 431.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2352, allocations: 0 / 431.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004397/0.2357, allocations: 262 kB / 431.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2357, allocations: 4 kB / 431.7 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2357, allocations: 4 kB / 431.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.2358, allocations: 32.83 kB / 431.7 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.236, allocations: 51.91 kB / 431.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.2373, allocations: 1.385 MB / 433.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.2374, allocations: 11.98 kB / 433.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.2374, allocations: 8.062 kB / 433.2 MB, free: 4.398 MB / 334.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.0001223/0.2375, allocations: 137.8 kB / 433.3 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.245e-05/0.2376, allocations: 19.86 kB / 433.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.502e-05/0.2376, allocations: 33.89 kB / 433.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2376, allocations: 4 kB / 433.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2376, allocations: 0 / 433.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2376, allocations: 0 / 433.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008813/0.2385, allocations: 0.6198 MB / 434 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2385, allocations: 0 / 434 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/0.2387, allocations: 39.92 kB / 434 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001067/0.2388, allocations: 44.77 kB / 434.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.2388, allocations: 4.062 kB / 434.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.24, allocations: 1.386 MB / 435.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.24, allocations: 4.031 kB / 435.5 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005585/0.2405, allocations: 397.1 kB / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.128e-05/0.2405, allocations: 28 kB / 435.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.2406, allocations: 8.031 kB / 435.9 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.2407, allocations: 8 kB / 435.9 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.2407, allocations: 19.91 kB / 435.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.2408, allocations: 8 kB / 435.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.2409, allocations: 131.2 kB / 436.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2409, allocations: 0 / 436.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.2412, allocations: 56 kB / 436.1 MB, free: 1.25 MB / 334.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.0008624/0.242, allocations: 0.9337 MB / 437.1 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005251/0.2425, allocations: 285.4 kB / 437.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2425, allocations: 0 / 437.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002993/0.2428, allocations: 206.6 kB / 437.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.2432, allocations: 49.94 kB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00308/0.2463, allocations: 2.527 MB / 440.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.2467, allocations: 0.752 MB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.389e-05/0.2467, allocations: 17.95 kB / 440.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.81e-05/0.2468, allocations: 67.41 kB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2468, allocations: 4 kB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.2761, allocations: 4.996 MB / 446 MB, free: 7.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.2, allocations: 6.75 kB / 446 MB, free: 7.363 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/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: 13.452147861011326]