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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 121.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 207.8 kB / 18.74 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.001571, allocations: 75.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3827, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001678/0.3845, allocations: 0.5003 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003401/0.3879, allocations: 2.357 MB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.964e-05/0.3879, allocations: 1.781 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.3879, allocations: 0 / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.655e-06/0.388, allocations: 0 / 0.5333 GB, free: 11.17 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.002097/0.3901, allocations: 0.5758 MB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.502e-05/0.3901, allocations: 1.375 kB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.791e-05/0.3902, allocations: 5.359 kB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.651e-05/0.3902, allocations: 1.375 kB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.041e-05/0.3902, allocations: 3.938 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-06/0.3902, allocations: 0 / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001428/0.3917, allocations: 0.706 MB / 0.5346 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.067e-06/0.3917, allocations: 4 kB / 0.5346 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.379e-05/0.3917, allocations: 5.328 kB / 0.5346 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.3928, allocations: 453.2 kB / 0.535 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3928, allocations: 0 / 0.535 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3928, allocations: 1.219 kB / 0.535 GB, free: 10.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3928, allocations: 0 / 0.535 GB, free: 10.15 MB / 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.0006547/0.3935, allocations: 430.3 kB / 0.5354 GB, free: 9.707 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3935, allocations: 13.66 kB / 0.5354 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.147e-05/0.3936, allocations: 35.86 kB / 0.5355 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.747e-05/0.3936, allocations: 2.062 kB / 0.5355 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.3937, allocations: 164.4 kB / 0.5356 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.3938, allocations: 1.531 kB / 0.5356 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.3938, allocations: 1.469 kB / 0.5356 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.3939, allocations: 33.23 kB / 0.5357 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3939, allocations: 3.938 kB / 0.5357 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.3939, allocations: 1.156 kB / 0.5357 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3939, allocations: 4 kB / 0.5357 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.722e-05/0.394, allocations: 10.23 kB / 0.5357 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002676/0.3942, allocations: 232.2 kB / 0.5359 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.803e-05/0.3943, allocations: 23.16 kB / 0.5359 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.373e-05/0.3944, allocations: 17.34 kB / 0.5359 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.3944, allocations: 1.219 kB / 0.5359 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.438e-05/0.3944, allocations: 61.36 kB / 0.536 GB, free: 9.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.402e-06/0.3944, allocations: 0 / 0.536 GB, free: 9.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002366/0.3947, allocations: 78.55 kB / 0.5361 GB, free: 8.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.3948, allocations: 78.42 kB / 0.5361 GB, free: 8.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.857e-05/0.3948, allocations: 89.86 kB / 0.5362 GB, free: 8.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.3948, allocations: 26.83 kB / 0.5363 GB, free: 8.719 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.672e-05/0.3949, allocations: 80.14 kB / 0.5363 GB, free: 8.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.3949, allocations: 1.281 kB / 0.5363 GB, free: 8.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.481e-05/0.3949, allocations: 20.06 kB / 0.5364 GB, free: 8.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3951, allocations: 312.2 kB / 0.5366 GB, free: 8.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.541e-05/0.3951, allocations: 5.266 kB / 0.5367 GB, free: 8.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.468e-06/0.3951, allocations: 2.359 kB / 0.5367 GB, free: 8.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.455e-05/0.3952, allocations: 68.67 kB / 0.5367 GB, free: 8.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3952, allocations: 9.125 kB / 0.5367 GB, free: 8.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.855e-05/0.3953, allocations: 60.53 kB / 0.5368 GB, free: 8.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.3953, allocations: 43.59 kB / 0.5368 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3953, allocations: 0 / 0.5368 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.3953, allocations: 1.156 kB / 0.5368 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.695e-05/0.3954, allocations: 0 / 0.5368 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.3954, allocations: 1.125 kB / 0.5368 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.3954, allocations: 0 / 0.5368 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-06/0.3954, allocations: 1.156 kB / 0.5368 GB, free: 8.105 MB / 398.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.0001008/0.3955, allocations: 141.7 kB / 0.537 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.3955, allocations: 1.125 kB / 0.537 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.537e-05/0.3956, allocations: 12.3 kB / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.3956, allocations: 0 / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3956, allocations: 1.125 kB / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3956, allocations: 0 / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.3959, allocations: 310.3 kB / 0.5373 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3959, allocations: 4 kB / 0.5373 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.608e-06/0.3959, allocations: 1.062 kB / 0.5373 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3959, allocations: 0 / 0.5373 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.3959, allocations: 1.062 kB / 0.5373 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3959, allocations: 1 kB / 0.5373 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.396, allocations: 4.031 kB / 0.5373 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.3961, allocations: 175.7 kB / 0.5375 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.3962, allocations: 77.11 kB / 0.5375 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.3962, allocations: 2.062 kB / 0.5375 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.273e-05/0.3963, allocations: 3.984 kB / 0.5375 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.945e-05/0.3963, allocations: 1.125 kB / 0.5375 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.3963, allocations: 1.031 kB / 0.5375 GB, free: 7.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.721e-05/0.3963, allocations: 80.28 kB / 0.5376 GB, free: 7.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3963, allocations: 0 / 0.5376 GB, free: 7.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007182/0.397, allocations: 167.2 kB / 0.5378 GB, free: 7.172 MB / 398.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.001412/0.3985, allocations: 0.9401 MB / 0.5387 GB, free: 6.359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.3986, allocations: 70.95 kB / 0.5388 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3986, allocations: 1.312 kB / 0.5388 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.798e-05/0.3987, allocations: 55.31 kB / 0.5388 GB, free: 6.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.3989, allocations: 5.062 kB / 0.5388 GB, free: 6.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.4001, allocations: 1.209 MB / 0.54 GB, free: 4.992 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.4004, allocations: 0.6712 MB / 0.5407 GB, free: 4.297 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.309e-05/0.4004, allocations: 0 / 0.5407 GB, free: 4.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.835e-05/0.4004, allocations: 10 kB / 0.5407 GB, free: 4.289 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4004, allocations: 0 / 0.5407 GB, free: 4.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.4278, allocations: 4.63 MB / 0.5452 GB, free: 1.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.024/8.452, allocations: 13.92 kB / 0.5452 GB, free: 1.832 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/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) Reference file matches