Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.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.001663/0.001663, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001508/0.001508, allocations: 215.6 kB / 24.54 MB, free: 4.02 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.427/1.427, allocations: 230.3 MB / 258 MB, free: 8.219 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.2211/0.2211, allocations: 46.89 MB / 361.3 MB, free: 4.441 MB / 286.1 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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002238, allocations: 75.88 kB / 0.4966 GB, free: 8.094 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3488, allocations: 66.03 MB / 0.5611 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001661/0.3505, allocations: 0.4932 MB / 0.5615 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003482/0.354, allocations: 2.404 MB / 0.5639 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.609e-05/0.354, allocations: 0 / 0.5639 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.266e-05/0.354, allocations: 4 kB / 0.5639 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.354, allocations: 0 / 0.5639 GB, free: 1.754 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001601/0.3556, allocations: 0.5836 MB / 0.5645 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.663e-05/0.3556, allocations: 8 kB / 0.5645 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.346e-05/0.3557, allocations: 0 / 0.5645 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.722e-05/0.3557, allocations: 3.938 kB / 0.5645 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.549e-05/0.3557, allocations: 0 / 0.5645 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.3557, allocations: 0 / 0.5645 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.357, allocations: 0.8071 MB / 0.5653 GB, free: 360 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.794e-06/0.357, allocations: 0 / 0.5653 GB, free: 360 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.15e-05/0.357, allocations: 7.984 kB / 0.5653 GB, free: 352 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006455/0.3576, allocations: 456.9 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3576, allocations: 3.844 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3576, allocations: 4 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.3576, allocations: 0 / 0.5657 GB, free: 15.89 MB / 414.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.0004814/0.3581, allocations: 444.2 kB / 0.5661 GB, free: 15.4 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3582, allocations: 8.031 kB / 0.5661 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.117e-05/0.3582, allocations: 34.7 kB / 0.5662 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.3582, allocations: 0.9375 kB / 0.5662 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.3584, allocations: 164.3 kB / 0.5663 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.3584, allocations: 4.375 kB / 0.5663 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.832e-06/0.3584, allocations: 384 / 0.5663 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.619e-05/0.3585, allocations: 41.81 kB / 0.5664 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3585, allocations: 0 / 0.5664 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.3585, allocations: 8 kB / 0.5664 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3585, allocations: 0 / 0.5664 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.627e-05/0.3585, allocations: 11.92 kB / 0.5664 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002556/0.3588, allocations: 228.9 kB / 0.5666 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.658e-05/0.3588, allocations: 34.55 kB / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.503e-05/0.3589, allocations: 8.922 kB / 0.5667 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.3589, allocations: 0 / 0.5667 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/0.3589, allocations: 56.27 kB / 0.5667 GB, free: 14.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.3589, allocations: 0 / 0.5667 GB, free: 14.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002098/0.3591, allocations: 75.33 kB / 0.5668 GB, free: 14.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.3592, allocations: 77.11 kB / 0.5669 GB, free: 14.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.938e-05/0.3592, allocations: 97.98 kB / 0.5669 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.3593, allocations: 25.7 kB / 0.567 GB, free: 14.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.3593, allocations: 80.14 kB / 0.567 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.388e-05/0.3593, allocations: 4 kB / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.3594, allocations: 13.7 kB / 0.5671 GB, free: 14.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.3595, allocations: 314.8 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.33e-05/0.3595, allocations: 4 kB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.955e-06/0.3595, allocations: 4 kB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.235e-05/0.3596, allocations: 68.27 kB / 0.5674 GB, free: 13.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3596, allocations: 3.938 kB / 0.5674 GB, free: 13.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.767e-05/0.3596, allocations: 67.39 kB / 0.5675 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.3597, allocations: 35.73 kB / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.3597, allocations: 0 / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.3597, allocations: 0 / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.426e-05/0.3597, allocations: 0 / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3597, allocations: 0 / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2e-05/0.3597, allocations: 7.953 kB / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.3597, allocations: 0 / 0.5675 GB, free: 13.73 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 9.764e-05/0.3598, allocations: 147.5 kB / 0.5677 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.3599, allocations: 4 kB / 0.5677 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.3599, allocations: 7.094 kB / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.3599, allocations: 0 / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3599, allocations: 0 / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3599, allocations: 0 / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.3601, allocations: 300.2 kB / 0.568 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3601, allocations: 0 / 0.568 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-06/0.3602, allocations: 4.031 kB / 0.568 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3602, allocations: 0 / 0.568 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.3602, allocations: 3.984 kB / 0.568 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3602, allocations: 0 / 0.568 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3602, allocations: 4 kB / 0.568 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.3603, allocations: 169.1 kB / 0.5682 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.3603, allocations: 85.03 kB / 0.5682 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.3604, allocations: 0 / 0.5682 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.166e-05/0.3604, allocations: 12.03 kB / 0.5682 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.173e-05/0.3604, allocations: 3.938 kB / 0.5683 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-06/0.3604, allocations: 0 / 0.5683 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.416e-05/0.3604, allocations: 79.31 kB / 0.5683 GB, free: 12.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3604, allocations: 0 / 0.5683 GB, free: 12.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004775/0.3609, allocations: 163.3 kB / 0.5685 GB, free: 12.64 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.00114/0.3621, allocations: 0.9507 MB / 0.5694 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.3622, allocations: 63.34 kB / 0.5695 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.3622, allocations: 0 / 0.5695 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.403e-05/0.3622, allocations: 59.5 kB / 0.5695 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001895/0.3624, allocations: 7.938 kB / 0.5695 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.3635, allocations: 1.218 MB / 0.5707 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.3638, allocations: 0.669 MB / 0.5714 GB, free: 9.508 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.011e-05/0.3638, allocations: 0 / 0.5714 GB, free: 9.508 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.959e-05/0.3638, allocations: 19.36 kB / 0.5714 GB, free: 9.488 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3638, allocations: 0 / 0.5714 GB, free: 9.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02775/0.3915, allocations: 4.642 MB / 0.5759 GB, free: 4.914 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.831/8.222, allocations: 3.266 kB / 0.5759 GB, free: 4.914 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_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_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.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: 11.144874227931723]