Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008223/0.0008223, allocations: 96.27 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008703/0.0008703, allocations: 156.9 kB / 24.26 MB, free: 176 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.866/0.866, allocations: 177 MB / 204.5 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2279/0.2279, allocations: 34.24 MB / 295.2 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 376.7 MB, free: 3.438 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.244e-05/1.379e-05, allocations: 2.312 kB / 376.7 MB, free: 3.434 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0009864/0.001, allocations: 0.5026 MB / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.003151, allocations: 1.949 MB / 379.2 MB, free: 0.957 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.807e-05/0.003169, allocations: 0 / 379.2 MB, free: 0.957 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.566e-05/0.003185, allocations: 0 / 379.2 MB, free: 0.957 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.374e-06/0.003192, allocations: 0 / 379.2 MB, free: 0.957 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001234/0.004426, allocations: 0.4984 MB / 379.7 MB, free: 468 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.531e-05/0.004482, allocations: 7.984 kB / 379.7 MB, free: 460 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.521e-05/0.004517, allocations: 0 / 379.7 MB, free: 460 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.604e-05/0.004543, allocations: 0 / 379.7 MB, free: 460 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.943e-05/0.004562, allocations: 0 / 379.7 MB, free: 460 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.097e-06/0.004571, allocations: 4 kB / 379.7 MB, free: 456 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007725/0.005344, allocations: 0.6704 MB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.978e-05/0.005364, allocations: 0 / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.542e-05/0.005389, allocations: 4 kB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000469/0.005858, allocations: 494.6 kB / 380.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.00586, allocations: 0 / 380.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.005861, allocations: 4 kB / 380.8 MB, free: 15.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.005864, allocations: 0 / 380.8 MB, free: 15.28 MB / 362.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.000289/0.006153, allocations: 335.5 kB / 381.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.006188, allocations: 8.031 kB / 381.2 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.006233, allocations: 30.75 kB / 381.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.779e-05/0.006261, allocations: 0.9375 kB / 381.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.554e-05/0.006317, allocations: 109.8 kB / 381.3 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.006326, allocations: 384 / 381.3 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.697e-06/0.006334, allocations: 4.312 kB / 381.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.444e-05/0.006419, allocations: 63.97 kB / 381.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-06/0.006425, allocations: 4.188 kB / 381.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.006433, allocations: 8.125 kB / 381.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.00644, allocations: 3.938 kB / 381.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.514e-05/0.006465, allocations: 29.69 kB / 381.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001728/0.006638, allocations: 196 kB / 381.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.92e-05/0.006687, allocations: 48.31 kB / 381.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.745e-05/0.006714, allocations: 42.61 kB / 381.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.006725, allocations: 3.938 kB / 381.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.006756, allocations: 60.2 kB / 381.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 7.52e-07/0.006757, allocations: 4 kB / 381.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001826/0.00694, allocations: 126.8 kB / 381.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.006976, allocations: 77.11 kB / 382 MB, free: 13.94 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.815e-05/0.007004, allocations: 93.81 kB / 382.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.007014, allocations: 25.7 kB / 382.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.758e-05/0.007032, allocations: 80.14 kB / 382.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.00705, allocations: 4 kB / 382.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.007074, allocations: 13.72 kB / 382.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.808e-05/0.007152, allocations: 318.8 kB / 382.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.043e-05/0.007173, allocations: 25.7 kB / 382.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.444e-05/0.007187, allocations: 37.83 kB / 382.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.829e-05/0.007236, allocations: 68.2 kB / 382.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.007238, allocations: 0 / 382.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.463e-05/0.007302, allocations: 101 kB / 382.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.00733, allocations: 29.7 kB / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.007335, allocations: 0 / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.007349, allocations: 0 / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.582e-05/0.007365, allocations: 4 kB / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.00737, allocations: 0 / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.558e-06/0.007379, allocations: 0 / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.902e-06/0.007385, allocations: 4.094 kB / 382.8 MB, free: 13.06 MB / 362.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 6.635e-05/0.007452, allocations: 143.5 kB / 382.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.894e-05/0.007471, allocations: 15.83 kB / 382.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.467e-05/0.007485, allocations: 3.156 kB / 382.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.007488, allocations: 4 kB / 382.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.007492, allocations: 3.938 kB / 382.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.007495, allocations: 0 / 382.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.007681, allocations: 297.1 kB / 383.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.007682, allocations: 0 / 383.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.236e-06/0.007685, allocations: 0 / 383.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.007687, allocations: 4.031 kB / 383.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.007695, allocations: 3.984 kB / 383.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.007696, allocations: 0 / 383.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.007698, allocations: 4 kB / 383.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.775e-05/0.007796, allocations: 206.8 kB / 383.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-06/0.007801, allocations: 0 / 383.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.007812, allocations: 0 / 383.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.319e-05/0.007835, allocations: 0 / 383.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.38e-05/0.007859, allocations: 4 kB / 383.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.007862, allocations: 0 / 383.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.519e-05/0.007887, allocations: 79.31 kB / 383.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007887, allocations: 0 / 383.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000356/0.008243, allocations: 131.6 kB / 383.6 MB, free: 12.08 MB / 362.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.0007399/0.008983, allocations: 0.9883 MB / 384.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.013e-05/0.009073, allocations: 118.8 kB / 384.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.009075, allocations: 3.938 kB / 384.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.477e-05/0.0091, allocations: 81.11 kB / 384.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.009234, allocations: 7.984 kB / 384.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007923/0.01003, allocations: 1.333 MB / 386.2 MB, free: 9.348 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.76e-05/0.01006, allocations: 59.53 kB / 386.2 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.128e-05/0.01008, allocations: 4 kB / 386.2 MB, free: 9.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.531e-05/0.0101, allocations: 8.5 kB / 386.2 MB, free: 9.258 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.0101, allocations: 0 / 386.2 MB, free: 9.258 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.0263, allocations: 5.338 MB / 391.6 MB, free: 3.984 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.299/7.325, allocations: 5.062 kB / 391.6 MB, free: 3.98 MB / 362.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.csv: Error: Error opening file: ModelicaTest_trunk_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.176251962780952]