Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001268/0.001268, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001368/0.001368, allocations: 201 kB / 23.73 MB, free: 4.379 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.4/1.4, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 55.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2112, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.00341/0.2146, allocations: 2.252 MB / 433.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.2157, allocations: 0.6155 MB / 433.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.2158, allocations: 7.938 kB / 433.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.2159, allocations: 39.59 kB / 434 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.2161, allocations: 75.33 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.2163, allocations: 75.78 kB / 434.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003048/0.2166, allocations: 270.7 kB / 434.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.2168, allocations: 79.03 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.217, allocations: 123.6 kB / 434.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.2171, allocations: 111.4 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.2172, allocations: 20 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.066e-05/0.2172, allocations: 32 kB / 434.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.2173, allocations: 43.84 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2174, allocations: 107.5 kB / 434.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003141/0.2177, allocations: 268.7 kB / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2177, allocations: 0 / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2177, allocations: 3.938 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.2177, allocations: 0 / 435.2 MB, free: 2.527 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.0007046/0.2184, allocations: 469.5 kB / 435.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.2185, allocations: 8.031 kB / 435.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.18e-05/0.2185, allocations: 58.73 kB / 435.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.2187, allocations: 44.72 kB / 435.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.219, allocations: 175.9 kB / 435.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.219, allocations: 16.75 kB / 435.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.219, allocations: 28.33 kB / 436 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.2194, allocations: 195.4 kB / 436.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.2194, allocations: 4 kB / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.2194, allocations: 15.94 kB / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2194, allocations: 8 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.2197, allocations: 133.7 kB / 436.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008931/0.2206, allocations: 0.5442 MB / 436.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.2209, allocations: 177 kB / 437 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.2211, allocations: 95.48 kB / 437.1 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.2211, allocations: 4 kB / 437.1 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.2211, allocations: 38.56 kB / 437.2 MB, free: 424 kB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.2211, allocations: 0 / 437.2 MB, free: 424 kB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00182/0.2229, allocations: 0.9215 MB / 438.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.223, allocations: 59.34 kB / 438.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.2232, allocations: 187.2 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.2232, allocations: 29.7 kB / 438.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.2233, allocations: 140.8 kB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.673e-05/0.2234, allocations: 119 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.2234, allocations: 53.7 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2236, allocations: 330.8 kB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2237, allocations: 67.97 kB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.2239, allocations: 111.8 kB / 439.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.2242, allocations: 201 kB / 439.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2242, allocations: 0 / 439.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005108/0.2247, allocations: 291.2 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2247, allocations: 4 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2247, allocations: 4 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.2249, allocations: 40.83 kB / 439.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.2252, allocations: 55.91 kB / 439.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.2266, allocations: 1.637 MB / 441.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.2268, allocations: 12.03 kB / 441.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.2268, allocations: 8 kB / 441.4 MB, free: 11.94 MB / 350.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.0001269/0.2269, allocations: 137.8 kB / 441.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.2269, allocations: 31.78 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.777e-05/0.227, allocations: 34.72 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.227, allocations: 4 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.227, allocations: 0 / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.227, allocations: 7.922 kB / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.2282, allocations: 0.7228 MB / 442.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.2282, allocations: 4 kB / 442.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.2284, allocations: 60 kB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.2285, allocations: 28.84 kB / 442.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.2286, allocations: 11.98 kB / 442.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.2297, allocations: 1.385 MB / 443.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2297, allocations: 0 / 443.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006846/0.2304, allocations: 487.4 kB / 444.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.2305, allocations: 23.86 kB / 444.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.2305, allocations: 12.03 kB / 444.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.2306, allocations: 8 kB / 444.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/0.2307, allocations: 23.89 kB / 444.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.2307, allocations: 12 kB / 444.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001113/0.2308, allocations: 132.4 kB / 444.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2308, allocations: 0 / 444.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003658/0.2312, allocations: 64 kB / 444.6 MB, free: 8.543 MB / 350.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.000975/0.2321, allocations: 1.024 MB / 445.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005748/0.2327, allocations: 318.8 kB / 445.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2327, allocations: 4 kB / 445.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.2331, allocations: 238.6 kB / 446.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.2335, allocations: 43.86 kB / 446.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.2369, allocations: 2.757 MB / 448.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.2371, allocations: 154.6 kB / 449.1 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.915e-05/0.2372, allocations: 22.28 kB / 449.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.2373, allocations: 79.41 kB / 449.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2373, allocations: 0 / 449.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03711/0.2744, allocations: 6.075 MB / 455.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.12, allocations: 3.938 kB / 455.3 MB, free: 13.8 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.393434703000821]