Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001206/0.001206, allocations: 80.53 kB / 19.93 MB, free: 4.633 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.001762/0.001762, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9365/0.9365, allocations: 158.6 MB / 185 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1334/0.1334, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.444e-05/3.627e-05, allocations: 5.938 kB / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001453/0.00149, allocations: 0.499 MB / 407.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.003806, allocations: 1.936 MB / 409.3 MB, free: 11.06 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.785e-05/0.003824, allocations: 4 kB / 409.3 MB, free: 11.06 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.498e-05/0.003839, allocations: 4 kB / 409.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.225e-06/0.003847, allocations: 3.938 kB / 409.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.005024, allocations: 0.5012 MB / 409.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.812e-05/0.005082, allocations: 0 / 409.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.276e-05/0.005125, allocations: 3.984 kB / 409.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.631e-05/0.005161, allocations: 4 kB / 409.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.639e-05/0.005188, allocations: 0 / 409.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.005198, allocations: 0 / 409.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007711/0.005969, allocations: 0.6549 MB / 410.5 MB, free: 9.887 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.717e-06/0.005978, allocations: 0 / 410.5 MB, free: 9.887 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.305e-05/0.006001, allocations: 0 / 410.5 MB, free: 9.887 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004768/0.006478, allocations: 486.8 kB / 410.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.006481, allocations: 0 / 410.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.006483, allocations: 4 kB / 410.9 MB, free: 9.406 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.006489, allocations: 0 / 410.9 MB, free: 9.406 MB / 346.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.0003885/0.006878, allocations: 327.5 kB / 411.3 MB, free: 9.051 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.006926, allocations: 8.031 kB / 411.3 MB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.39e-05/0.00699, allocations: 38.7 kB / 411.3 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.007021, allocations: 0.9375 kB / 411.3 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.632e-05/0.007087, allocations: 109.8 kB / 411.4 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.007101, allocations: 4.312 kB / 411.4 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.00711, allocations: 4.312 kB / 411.4 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.007233, allocations: 55.97 kB / 411.5 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.00724, allocations: 4.188 kB / 411.5 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.007253, allocations: 8.125 kB / 411.5 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.007258, allocations: 0 / 411.5 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.988e-05/0.007288, allocations: 29.7 kB / 411.5 MB, free: 8.742 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002408/0.007528, allocations: 200 kB / 411.7 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.395e-05/0.007602, allocations: 56.25 kB / 411.8 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.51e-05/0.007637, allocations: 42.55 kB / 411.8 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.00765, allocations: 3.938 kB / 411.8 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.007691, allocations: 56.27 kB / 411.9 MB, free: 8.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.007693, allocations: 0 / 411.9 MB, free: 8.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002265/0.007919, allocations: 126.8 kB / 412 MB, free: 8.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.007969, allocations: 89.05 kB / 412.1 MB, free: 8.055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.52e-05/0.008004, allocations: 89.86 kB / 412.2 MB, free: 7.957 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.119e-05/0.008015, allocations: 25.7 kB / 412.2 MB, free: 7.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.123e-05/0.008036, allocations: 80.14 kB / 412.3 MB, free: 7.844 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.008059, allocations: 3.953 kB / 412.3 MB, free: 7.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.008087, allocations: 13.72 kB / 412.3 MB, free: 7.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.008178, allocations: 314.8 kB / 412.6 MB, free: 7.504 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.588e-05/0.008204, allocations: 33.69 kB / 412.6 MB, free: 7.465 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.499e-05/0.008219, allocations: 25.83 kB / 412.6 MB, free: 7.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.974e-05/0.008269, allocations: 72.33 kB / 412.7 MB, free: 7.348 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.008271, allocations: 0 / 412.7 MB, free: 7.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.088e-05/0.008352, allocations: 93.03 kB / 412.8 MB, free: 7.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.008385, allocations: 33.7 kB / 412.8 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.008391, allocations: 0 / 412.8 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.008404, allocations: 3.938 kB / 412.8 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.807e-05/0.008422, allocations: 0 / 412.8 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.008428, allocations: 0 / 412.8 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.746e-05/0.008446, allocations: 4 kB / 412.8 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.008454, allocations: 8.031 kB / 412.9 MB, free: 7.184 MB / 346.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 7.915e-05/0.008534, allocations: 135.5 kB / 413 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.008546, allocations: 7.938 kB / 413 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.753e-05/0.008563, allocations: 3.156 kB / 413 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.008567, allocations: 4 kB / 413 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.008572, allocations: 0 / 413 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.008576, allocations: 0 / 413 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.008771, allocations: 297.1 kB / 413.3 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.008772, allocations: 0 / 413.3 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-06/0.008778, allocations: 3.938 kB / 413.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.00878, allocations: 8.031 kB / 413.3 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.008786, allocations: 3.938 kB / 413.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.008788, allocations: 3.984 kB / 413.3 MB, free: 6.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.008789, allocations: 3.938 kB / 413.3 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.292e-05/0.008882, allocations: 190.9 kB / 413.5 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.213e-06/0.008889, allocations: 3.984 kB / 413.5 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.008901, allocations: 0 / 413.5 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.797e-05/0.008929, allocations: 7.984 kB / 413.5 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.008945, allocations: 0 / 413.5 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.00895, allocations: 0 / 413.5 MB, free: 6.418 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.899e-05/0.008979, allocations: 75.31 kB / 413.6 MB, free: 6.344 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008979, allocations: 4 kB / 413.6 MB, free: 6.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.009313, allocations: 135.6 kB / 413.7 MB, free: 6.207 MB / 346.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.000967/0.01028, allocations: 0.9846 MB / 414.7 MB, free: 5.184 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001481/0.01043, allocations: 114.8 kB / 414.8 MB, free: 5.047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01043, allocations: 0 / 414.8 MB, free: 5.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.879e-05/0.01047, allocations: 85.09 kB / 414.9 MB, free: 4.945 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001568/0.01063, allocations: 7.938 kB / 414.9 MB, free: 4.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.01169, allocations: 1.329 MB / 416.2 MB, free: 3.488 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.965e-05/0.01175, allocations: 59.3 kB / 416.3 MB, free: 3.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.7e-05/0.01177, allocations: 4.188 kB / 416.3 MB, free: 3.406 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.0118, allocations: 12.5 kB / 416.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of SimCode: time 3.6e-07/0.0118, allocations: 0 / 416.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.03149, allocations: 5.097 MB / 421.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.396/7.427, allocations: 11.66 kB / 421.4 MB, free: 14.28 MB / 362.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.csv: Error: Error opening file: ModelicaTest_3.2.3_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.601970355957747]