Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.001186/0.001186, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.00122/0.00122, allocations: 189.5 kB / 24.49 MB, free: 3.941 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.31/1.31, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 51.92 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2231, allocations: 52.18 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003406/0.2265, allocations: 2.246 MB / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008831/0.2274, allocations: 0.5532 MB / 426.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.2275, allocations: 7.938 kB / 426.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.2276, allocations: 31.66 kB / 426.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.2278, allocations: 83.27 kB / 426.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001835/0.228, allocations: 51.92 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.2283, allocations: 278.7 kB / 426.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.2284, allocations: 75.23 kB / 426.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.2286, allocations: 111.6 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.2288, allocations: 115.5 kB / 426.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.161e-05/0.2288, allocations: 20 kB / 426.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.241e-05/0.2288, allocations: 20 kB / 426.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.925e-05/0.2289, allocations: 51.78 kB / 427 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.229, allocations: 99.53 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.2293, allocations: 269.1 kB / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2293, allocations: 0 / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2293, allocations: 0 / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2293, allocations: 4 kB / 427.3 MB, free: 10.39 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006886/0.23, allocations: 461.5 kB / 427.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.23, allocations: 12.02 kB / 427.8 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.395e-05/0.2301, allocations: 8.625 kB / 427.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.2301, allocations: 54.73 kB / 427.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.99e-05/0.2302, allocations: 28.75 kB / 427.9 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.2304, allocations: 182.8 kB / 428.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.2305, allocations: 20.81 kB / 428.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.2305, allocations: 24.33 kB / 428.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.2309, allocations: 199.2 kB / 428.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.2309, allocations: 4 kB / 428.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.2309, allocations: 11.92 kB / 428.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.2309, allocations: 8 kB / 428.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002757/0.2312, allocations: 133.7 kB / 428.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008856/0.2321, allocations: 0.5481 MB / 429 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.2324, allocations: 162.6 kB / 429.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.2325, allocations: 88.83 kB / 429.3 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.2326, allocations: 4 kB / 429.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.2326, allocations: 34.55 kB / 429.3 MB, free: 8.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.2326, allocations: 0 / 429.3 MB, free: 8.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001811/0.2344, allocations: 0.9352 MB / 430.2 MB, free: 7.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.2345, allocations: 55.41 kB / 430.3 MB, free: 7.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.2346, allocations: 184 kB / 430.5 MB, free: 7.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.2347, allocations: 33.7 kB / 430.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.327e-05/0.2347, allocations: 140.8 kB / 430.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.012e-05/0.2348, allocations: 115 kB / 430.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.056e-05/0.2349, allocations: 53.7 kB / 430.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2351, allocations: 334.8 kB / 431.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.2352, allocations: 75.72 kB / 431.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.2354, allocations: 107.4 kB / 431.3 MB, free: 6.184 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.2357, allocations: 193.3 kB / 431.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.2357, allocations: 0 / 431.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005008/0.2362, allocations: 298.3 kB / 431.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.2362, allocations: 4 kB / 431.8 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2362, allocations: 8 kB / 431.8 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.2364, allocations: 44.83 kB / 431.8 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.2366, allocations: 51.97 kB / 431.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001518/0.2381, allocations: 1.63 MB / 433.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.2383, allocations: 16.02 kB / 433.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.2383, allocations: 12.06 kB / 433.5 MB, free: 3.812 MB / 334.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.0001317/0.2384, allocations: 146.2 kB / 433.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.545e-05/0.2385, allocations: 19.86 kB / 433.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.389e-05/0.2385, allocations: 34.64 kB / 433.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2385, allocations: 4 kB / 433.7 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2385, allocations: 0 / 433.7 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2385, allocations: 4 kB / 433.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.2396, allocations: 0.7104 MB / 434.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2396, allocations: 0 / 434.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.2399, allocations: 59.91 kB / 434.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001122/0.24, allocations: 36.83 kB / 434.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.24, allocations: 4 kB / 434.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.2412, allocations: 1.385 MB / 435.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2412, allocations: 4.031 kB / 435.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006925/0.2419, allocations: 486.7 kB / 436.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.161e-05/0.2419, allocations: 19.86 kB / 436.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.2419, allocations: 11.94 kB / 436.5 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.2421, allocations: 8 kB / 436.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.2421, allocations: 23.95 kB / 436.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2421, allocations: 20.06 kB / 436.5 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001128/0.2423, allocations: 131.2 kB / 436.6 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2423, allocations: 0 / 436.6 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.2426, allocations: 68 kB / 436.7 MB, free: 436 kB / 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.001049/0.2436, allocations: 1.02 MB / 437.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005895/0.2442, allocations: 335.6 kB / 438 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2442, allocations: 0 / 438 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003494/0.2446, allocations: 226.5 kB / 438.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/0.245, allocations: 43.91 kB / 438.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.2485, allocations: 2.757 MB / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001365/0.2487, allocations: 142.8 kB / 441.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.533e-05/0.2488, allocations: 22.3 kB / 441.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.2489, allocations: 79.41 kB / 441.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2489, allocations: 0 / 441.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.2792, allocations: 5.682 MB / 447 MB, free: 6.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.31, allocations: 9.359 kB / 447 MB, free: 6.113 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 13.513615980977193]