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.001212/0.001212, allocations: 80.36 kB / 20.67 MB, free: 3.891 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.001052/0.001052, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 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.9386/0.9386, allocations: 177 MB / 204.1 MB, free: 5.703 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.2685/0.2685, allocations: 34.24 MB / 294.8 MB, free: 0.6797 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 2.384e-06/2.384e-06, allocations: 0 / 442.1 MB, free: 1.551 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.617e-05, allocations: 5.094 kB / 442.2 MB, free: 1.547 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001922/0.001948, allocations: 0.5012 MB / 442.7 MB, free: 1.047 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2125/0.2145, allocations: 1.933 MB / 444.6 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.724e-05/0.2145, allocations: 0.7188 kB / 444.6 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.604e-05/0.2145, allocations: 0 / 444.6 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.205e-06/0.2146, allocations: 1.125 kB / 444.6 MB, free: 43.09 MB / 410.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.001426/0.216, allocations: 0.5 MB / 445.1 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.879e-05/0.216, allocations: 7.953 kB / 445.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.2161, allocations: 0 / 445.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.866e-05/0.2161, allocations: 4.625 kB / 445.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.547e-05/0.2162, allocations: 0 / 445.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.2162, allocations: 3.281 kB / 445.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007955/0.217, allocations: 0.6718 MB / 445.8 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.217, allocations: 0 / 445.8 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.389e-05/0.217, allocations: 2.875 kB / 445.8 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004606/0.2175, allocations: 492.5 kB / 446.3 MB, free: 42.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2175, allocations: 0 / 446.3 MB, free: 42.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2175, allocations: 2.938 kB / 446.3 MB, free: 42.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2175, allocations: 4 kB / 446.3 MB, free: 42.85 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.0003229/0.2178, allocations: 334.4 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.2178, allocations: 8.719 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.182e-05/0.2179, allocations: 37.02 kB / 446.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.2179, allocations: 8.062 kB / 446.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.694e-05/0.218, allocations: 101.8 kB / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.218, allocations: 3.25 kB / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.335e-06/0.218, allocations: 384 / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.657e-05/0.2181, allocations: 61.28 kB / 446.8 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.2181, allocations: 192 / 446.8 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.2181, allocations: 7.406 kB / 446.8 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2181, allocations: 4 kB / 446.8 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.081e-05/0.2181, allocations: 28.58 kB / 446.8 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.2183, allocations: 202.2 kB / 447 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.301e-05/0.2184, allocations: 46.25 kB / 447.1 MB, free: 41.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.194e-05/0.2184, allocations: 36.38 kB / 447.1 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.2184, allocations: 3.938 kB / 447.1 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.2184, allocations: 70.41 kB / 447.2 MB, free: 41.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.713e-06/0.2184, allocations: 0 / 447.2 MB, free: 41.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001949/0.2186, allocations: 127.3 kB / 447.3 MB, free: 41.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.2187, allocations: 79.61 kB / 447.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.463e-05/0.2187, allocations: 89.86 kB / 447.5 MB, free: 41.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.029e-06/0.2187, allocations: 25.7 kB / 447.5 MB, free: 41.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.486e-06/0.2187, allocations: 80.14 kB / 447.6 MB, free: 41.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.2187, allocations: 3.938 kB / 447.6 MB, free: 41.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.477e-05/0.2187, allocations: 16.16 kB / 447.6 MB, free: 41.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.81e-05/0.2188, allocations: 314.3 kB / 447.9 MB, free: 41.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.678e-05/0.2188, allocations: 28.45 kB / 447.9 MB, free: 41.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.097e-05/0.2188, allocations: 28.95 kB / 448 MB, free: 41.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.768e-05/0.2188, allocations: 70.2 kB / 448 MB, free: 40.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2188, allocations: 0 / 448 MB, free: 40.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.984e-05/0.2189, allocations: 106.5 kB / 448.1 MB, free: 40.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.2189, allocations: 30.92 kB / 448.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2189, allocations: 0 / 448.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.2189, allocations: 0.8438 kB / 448.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.125e-05/0.219, allocations: 5.344 kB / 448.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.219, allocations: 3.234 kB / 448.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.536e-05/0.219, allocations: 0 / 448.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.219, allocations: 0 / 448.2 MB, free: 40.81 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 4.65e-05/0.219, allocations: 142.3 kB / 448.3 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.2191, allocations: 6.719 kB / 448.3 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.007e-05/0.2191, allocations: 3.156 kB / 448.3 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.2191, allocations: 0 / 448.3 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2191, allocations: 5.016 kB / 448.3 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.2191, allocations: 2.688 kB / 448.3 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.2192, allocations: 296.3 kB / 448.6 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2192, allocations: 2.688 kB / 448.6 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-06/0.2192, allocations: 0 / 448.6 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.2192, allocations: 0 / 448.6 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.952e-06/0.2192, allocations: 8.016 kB / 448.6 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2193, allocations: 3.188 kB / 448.6 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2193, allocations: 2.656 kB / 448.6 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.19e-05/0.2193, allocations: 195 kB / 448.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-06/0.2193, allocations: 6.812 kB / 448.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.968e-06/0.2193, allocations: 0 / 448.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.648e-05/0.2194, allocations: 0 / 448.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.973e-05/0.2194, allocations: 2.75 kB / 448.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.2194, allocations: 2.688 kB / 448.8 MB, free: 40.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.19e-05/0.2194, allocations: 75.28 kB / 448.9 MB, free: 40.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2194, allocations: 4.031 kB / 448.9 MB, free: 40.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003153/0.2197, allocations: 138.4 kB / 449.1 MB, free: 40.02 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.0007633/0.2205, allocations: 0.994 MB / 450.1 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.2206, allocations: 114.1 kB / 450.2 MB, free: 39.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2206, allocations: 0 / 450.2 MB, free: 39.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.225e-05/0.2206, allocations: 93.44 kB / 450.3 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.2207, allocations: 2.938 kB / 450.3 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006029/0.2213, allocations: 1.331 MB / 451.6 MB, free: 37.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.623e-05/0.2214, allocations: 54.08 kB / 451.6 MB, free: 37.57 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.111e-05/0.2214, allocations: 2.875 kB / 451.6 MB, free: 37.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.285e-05/0.2214, allocations: 12.5 kB / 451.7 MB, free: 37.57 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.2214, allocations: 2.594 kB / 451.7 MB, free: 37.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.2441, allocations: 5.255 MB / 456.9 MB, free: 36.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.327/7.571, allocations: 7.797 kB / 456.9 MB, free: 36.42 MB / 410.7 MB " [Timeout remaining time 652] (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.718680595979095]