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.001382/0.001382, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001507/0.001507, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 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 1.463/1.463, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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.2382/0.2382, allocations: 46.92 MB / 360.8 MB, free: 4.172 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002547/0.002547, allocations: 83.88 kB / 0.4962 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3612, allocations: 66.07 MB / 0.5607 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001757/0.363, allocations: 0.4994 MB / 0.5612 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00319/0.3662, allocations: 2.062 MB / 0.5632 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.616e-05/0.3662, allocations: 0 / 0.5632 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.3662, allocations: 0 / 0.5632 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.352e-06/0.3662, allocations: 0 / 0.5632 GB, free: 1.723 MB / 398.1 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.001577/0.3678, allocations: 0.5049 MB / 0.5637 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.059e-05/0.3678, allocations: 3.984 kB / 0.5637 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.494e-05/0.3679, allocations: 4 kB / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.642e-05/0.3679, allocations: 0 / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.263e-05/0.3679, allocations: 7.922 kB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.675e-06/0.3679, allocations: 0 / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.3692, allocations: 0.7388 MB / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.836e-06/0.3692, allocations: 0 / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.603e-05/0.3693, allocations: 4 kB / 0.5645 GB, free: 476 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007548/0.37, allocations: 387.1 kB / 0.5648 GB, free: 88 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.37, allocations: 0 / 0.5648 GB, free: 88 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.37, allocations: 4 kB / 0.5648 GB, free: 84 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.37, allocations: 0 / 0.5648 GB, free: 84 kB / 398.1 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.000563/0.3706, allocations: 339.4 kB / 0.5652 GB, free: 15.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.3706, allocations: 12.02 kB / 0.5652 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.657e-05/0.3707, allocations: 38.7 kB / 0.5652 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.012e-05/0.3707, allocations: 4.938 kB / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.5e-05/0.3708, allocations: 114.4 kB / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.3708, allocations: 384 / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.3709, allocations: 384 / 0.5653 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.371, allocations: 37.83 kB / 0.5654 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.371, allocations: 0 / 0.5654 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.371, allocations: 3.984 kB / 0.5654 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.371, allocations: 0 / 0.5654 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.609e-05/0.371, allocations: 4 kB / 0.5654 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002615/0.3713, allocations: 200 kB / 0.5656 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.354e-05/0.3714, allocations: 34.52 kB / 0.5656 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.396e-05/0.3714, allocations: 12.92 kB / 0.5656 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.3714, allocations: 0 / 0.5656 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.251e-05/0.3714, allocations: 56.27 kB / 0.5657 GB, free: 15.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.3714, allocations: 0 / 0.5657 GB, free: 15.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.000214/0.3717, allocations: 71.39 kB / 0.5657 GB, free: 15.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.3717, allocations: 88.98 kB / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.937e-05/0.3718, allocations: 89.86 kB / 0.5659 GB, free: 14.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.3718, allocations: 29.83 kB / 0.5659 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.03e-05/0.3718, allocations: 84.08 kB / 0.566 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.808e-05/0.3718, allocations: 4 kB / 0.566 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.3719, allocations: 13.72 kB / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.372, allocations: 314.8 kB / 0.5663 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.438e-05/0.372, allocations: 4 kB / 0.5663 GB, free: 14.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-06/0.372, allocations: 0 / 0.5663 GB, free: 14.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.853e-05/0.3721, allocations: 68.33 kB / 0.5664 GB, free: 14.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.3721, allocations: 3.938 kB / 0.5664 GB, free: 14.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.903e-05/0.3722, allocations: 71.39 kB / 0.5665 GB, free: 14.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.3722, allocations: 33.64 kB / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3722, allocations: 0 / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3723, allocations: 0 / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.648e-05/0.3723, allocations: 4 kB / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.3723, allocations: 0 / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.3723, allocations: 3.953 kB / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.3723, allocations: 0 / 0.5665 GB, free: 14.13 MB / 414.1 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 0.0001206/0.3724, allocations: 144.8 kB / 0.5666 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.3725, allocations: 0 / 0.5666 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.306e-05/0.3725, allocations: 7.141 kB / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.3725, allocations: 0 / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3725, allocations: 0 / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3725, allocations: 4 kB / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.3728, allocations: 267.4 kB / 0.5669 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3728, allocations: 0 / 0.5669 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-06/0.3728, allocations: 3.969 kB / 0.5669 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3728, allocations: 8 kB / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.3728, allocations: 0 / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3728, allocations: 0 / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3728, allocations: 4 kB / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.3729, allocations: 169.2 kB / 0.5671 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-06/0.3729, allocations: 0 / 0.5671 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.373, allocations: 3.984 kB / 0.5671 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.495e-05/0.373, allocations: 8.031 kB / 0.5671 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/0.373, allocations: 4 kB / 0.5671 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.373, allocations: 0 / 0.5671 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.351e-05/0.3731, allocations: 75.28 kB / 0.5672 GB, free: 13.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3731, allocations: 3.938 kB / 0.5672 GB, free: 13.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005761/0.3736, allocations: 135.5 kB / 0.5673 GB, free: 13.21 MB / 414.1 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.001207/0.3748, allocations: 0.9071 MB / 0.5682 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.375, allocations: 67.42 kB / 0.5682 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.375, allocations: 0 / 0.5682 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.312e-05/0.375, allocations: 59.34 kB / 0.5683 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.3752, allocations: 10.19 kB / 0.5683 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.3764, allocations: 1.199 MB / 0.5695 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.3767, allocations: 0.6767 MB / 0.5701 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.414e-05/0.3767, allocations: 4 kB / 0.5702 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.397e-05/0.3767, allocations: 7.438 kB / 0.5702 GB, free: 10.12 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3767, allocations: 0 / 0.5702 GB, free: 10.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03361/0.4104, allocations: 4.66 MB / 0.5747 GB, free: 5.562 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.37, allocations: 11.92 kB / 0.5747 GB, free: 5.551 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.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: 14.303312188014388]