Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.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.0008616/0.0008616, allocations: 79.7 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.001028/0.001028, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9181/0.9181, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2533/0.2533, allocations: 34.25 MB / 294.9 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 442.2 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.24e-05/2.433e-05, allocations: 2.281 kB / 442.2 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001467/0.001492, allocations: 0.5004 MB / 442.7 MB, free: 1.184 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1624/0.1639, allocations: 1.925 MB / 444.6 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.767e-05/0.1639, allocations: 0 / 444.6 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.021e-05/0.164, allocations: 0 / 444.6 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.484e-06/0.164, allocations: 4.312 kB / 444.6 MB, free: 42.67 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009898/0.165, allocations: 0.5087 MB / 445.1 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.162e-05/0.165, allocations: 3.938 kB / 445.1 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.872e-05/0.165, allocations: 3.5 kB / 445.1 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.667e-05/0.1651, allocations: 3.938 kB / 445.1 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.96e-05/0.1651, allocations: 2.781 kB / 445.1 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-06/0.1651, allocations: 1.812 kB / 445.1 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005832/0.1657, allocations: 0.6643 MB / 445.8 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-06/0.1657, allocations: 7.984 kB / 445.8 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.1657, allocations: 2.75 kB / 445.8 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.1661, allocations: 482.6 kB / 446.3 MB, free: 42.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1661, allocations: 0 / 446.3 MB, free: 42.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1661, allocations: 0 / 446.3 MB, free: 42.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1661, allocations: 2.906 kB / 446.3 MB, free: 42.44 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002602/0.1663, allocations: 345.7 kB / 446.6 MB, free: 42.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1664, allocations: 8.5 kB / 446.6 MB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.301e-05/0.1664, allocations: 36.55 kB / 446.6 MB, free: 42.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.066e-05/0.1664, allocations: 0.9375 kB / 446.6 MB, free: 42.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.294e-05/0.1665, allocations: 105.1 kB / 446.8 MB, free: 41.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.1665, allocations: 2.938 kB / 446.8 MB, free: 41.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.532e-06/0.1665, allocations: 384 / 446.8 MB, free: 41.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.744e-05/0.1666, allocations: 64.53 kB / 446.8 MB, free: 41.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.1666, allocations: 2.906 kB / 446.8 MB, free: 41.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-06/0.1666, allocations: 4.125 kB / 446.8 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.1666, allocations: 0 / 446.8 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.882e-05/0.1666, allocations: 37.09 kB / 446.9 MB, free: 41.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.1667, allocations: 197.1 kB / 447.1 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.023e-05/0.1668, allocations: 49.2 kB / 447.1 MB, free: 41.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.726e-05/0.1668, allocations: 36.84 kB / 447.1 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.1668, allocations: 7.875 kB / 447.1 MB, free: 41.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.1668, allocations: 58.83 kB / 447.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 6.51e-07/0.1668, allocations: 0 / 447.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001423/0.167, allocations: 122.6 kB / 447.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.167, allocations: 80.47 kB / 447.4 MB, free: 41.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.379e-05/0.167, allocations: 98.67 kB / 447.5 MB, free: 41.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-06/0.167, allocations: 25.7 kB / 447.5 MB, free: 41.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.613e-06/0.167, allocations: 84.12 kB / 447.6 MB, free: 41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.167, allocations: 1.375 kB / 447.6 MB, free: 41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.125e-05/0.1671, allocations: 20 kB / 447.6 MB, free: 40.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.347e-05/0.1671, allocations: 313.6 kB / 447.9 MB, free: 40.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.1671, allocations: 35.2 kB / 448 MB, free: 40.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-06/0.1671, allocations: 31.98 kB / 448 MB, free: 40.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.39e-05/0.1671, allocations: 65.3 kB / 448.1 MB, free: 40.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1671, allocations: 6.719 kB / 448.1 MB, free: 40.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.847e-05/0.1672, allocations: 98.42 kB / 448.2 MB, free: 40.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.1672, allocations: 33.86 kB / 448.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.1672, allocations: 0 / 448.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.1672, allocations: 0 / 448.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-05/0.1672, allocations: 0 / 448.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1672, allocations: 0 / 448.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.32e-05/0.1672, allocations: 3.031 kB / 448.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.1673, allocations: 5.344 kB / 448.2 MB, free: 40.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.1673, allocations: 135.5 kB / 448.3 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.1673, allocations: 11.91 kB / 448.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.429e-05/0.1673, allocations: 7.031 kB / 448.4 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1673, allocations: 2.781 kB / 448.4 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1673, allocations: 0 / 448.4 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1673, allocations: 0 / 448.4 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.1674, allocations: 293.8 kB / 448.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1675, allocations: 0 / 448.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.856e-06/0.1675, allocations: 2.906 kB / 448.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.1675, allocations: 0 / 448.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.1675, allocations: 0 / 448.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.1675, allocations: 0 / 448.6 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1675, allocations: 4.031 kB / 448.7 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.003e-05/0.1675, allocations: 203.8 kB / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.437e-06/0.1675, allocations: 4.594 kB / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-06/0.1675, allocations: 2.719 kB / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.44e-05/0.1675, allocations: 1.312 kB / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.489e-05/0.1676, allocations: 2.5 kB / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1676, allocations: 0 / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.308e-06/0.1676, allocations: 75.28 kB / 448.9 MB, free: 39.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1676, allocations: 0 / 448.9 MB, free: 39.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002802/0.1679, allocations: 135 kB / 449.1 MB, free: 39.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006531/0.1685, allocations: 1.001 MB / 450.1 MB, free: 38.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.61e-05/0.1686, allocations: 121.7 kB / 450.2 MB, free: 38.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.1686, allocations: 0 / 450.2 MB, free: 38.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.455e-05/0.1686, allocations: 82.7 kB / 450.3 MB, free: 38.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.1687, allocations: 2.844 kB / 450.3 MB, free: 38.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004902/0.1692, allocations: 1.336 MB / 451.6 MB, free: 37.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.793e-05/0.1693, allocations: 54.2 kB / 451.7 MB, free: 37.17 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.083e-05/0.1693, allocations: 3.188 kB / 451.7 MB, free: 37.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.823e-05/0.1693, allocations: 11.53 kB / 451.7 MB, free: 37.16 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1693, allocations: 4.188 kB / 451.7 MB, free: 37.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.1884, allocations: 5.258 MB / 456.9 MB, free: 36.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.294/7.483, allocations: 13.84 kB / 456.9 MB, free: 36.02 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.csv: Error: Error opening file: ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.537958204746246]