Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 242.3 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2385/0.2385, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 60.48 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1247, allocations: 60.83 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002048/0.1268, allocations: 495.7 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003402/0.1303, allocations: 2.306 MB / 472.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.1303, allocations: 0 / 472.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.116e-05/0.1304, allocations: 0 / 472.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.825e-06/0.1304, allocations: 4 kB / 472.2 MB, free: 11.46 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001674/0.132, allocations: 0.5686 MB / 472.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.988e-05/0.1321, allocations: 0 / 472.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.872e-05/0.1321, allocations: 4 kB / 472.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.366e-05/0.1322, allocations: 0 / 472.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.674e-05/0.1322, allocations: 0 / 472.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.219e-06/0.1322, allocations: 0 / 472.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.1333, allocations: 0.6902 MB / 473.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.694e-06/0.1333, allocations: 0 / 473.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.961e-05/0.1334, allocations: 4 kB / 473.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007506/0.1341, allocations: 447.5 kB / 473.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1341, allocations: 0 / 473.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1341, allocations: 0 / 473.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.1342, allocations: 4 kB / 473.9 MB, free: 9.746 MB / 350.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.0004651/0.1346, allocations: 440.1 kB / 474.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1347, allocations: 8.031 kB / 474.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.958e-05/0.1347, allocations: 34.69 kB / 474.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.1348, allocations: 0.9375 kB / 474.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.586e-05/0.1349, allocations: 168.4 kB / 474.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.085e-06/0.1349, allocations: 4.375 kB / 474.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.1349, allocations: 384 / 474.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.316e-05/0.135, allocations: 41.81 kB / 474.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.211e-06/0.135, allocations: 0 / 474.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.135, allocations: 0 / 474.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.135, allocations: 0 / 474.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.16e-05/0.135, allocations: 4 kB / 474.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002043/0.1353, allocations: 236.9 kB / 474.8 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.236e-05/0.1353, allocations: 22.52 kB / 474.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.67e-05/0.1353, allocations: 20.91 kB / 474.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-06/0.1354, allocations: 0 / 474.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.1354, allocations: 56.27 kB / 474.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1354, allocations: 0 / 474.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001789/0.1356, allocations: 71.34 kB / 474.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.1356, allocations: 85.09 kB / 475 MB, free: 8.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.431e-05/0.1357, allocations: 93.77 kB / 475.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.1357, allocations: 25.83 kB / 475.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.286e-05/0.1357, allocations: 84.14 kB / 475.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.1358, allocations: 3.938 kB / 475.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.1358, allocations: 17.72 kB / 475.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.637e-05/0.1359, allocations: 310.8 kB / 475.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.118e-05/0.1359, allocations: 0 / 475.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.157e-05/0.1359, allocations: 4 kB / 475.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.137e-05/0.136, allocations: 72.19 kB / 475.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.136, allocations: 8 kB / 475.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.476e-05/0.1361, allocations: 67.34 kB / 475.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.1361, allocations: 33.7 kB / 475.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1361, allocations: 0 / 475.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.1361, allocations: 3.984 kB / 475.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.522e-05/0.1362, allocations: 0 / 475.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1362, allocations: 4 kB / 475.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.496e-05/0.1362, allocations: 0 / 475.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.1362, allocations: 4 kB / 475.7 MB, free: 7.582 MB / 350.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 8.484e-05/0.1363, allocations: 143.5 kB / 475.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.1363, allocations: 0 / 475.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.6e-05/0.1364, allocations: 7.078 kB / 475.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1364, allocations: 0 / 475.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1364, allocations: 0 / 475.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1364, allocations: 0 / 475.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.1366, allocations: 316.1 kB / 476.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1367, allocations: 0 / 476.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.08e-06/0.1367, allocations: 0 / 476.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1367, allocations: 4.031 kB / 476.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1367, allocations: 4 kB / 476.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.1367, allocations: 0 / 476.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.1367, allocations: 3.984 kB / 476.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.1368, allocations: 165.2 kB / 476.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.172e-05/0.1369, allocations: 77.11 kB / 476.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.1369, allocations: 4 kB / 476.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.187e-05/0.1369, allocations: 4.031 kB / 476.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.449e-05/0.1369, allocations: 7.875 kB / 476.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.137, allocations: 0 / 476.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.283e-05/0.137, allocations: 83.27 kB / 476.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.137, allocations: 0 / 476.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004993/0.1375, allocations: 155.9 kB / 476.7 MB, free: 6.508 MB / 350.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.001134/0.1386, allocations: 0.9382 MB / 477.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001072/0.1388, allocations: 63.34 kB / 477.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1388, allocations: 0 / 477.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.999e-05/0.1388, allocations: 63.39 kB / 477.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.139, allocations: 6.469 kB / 477.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009364/0.14, allocations: 1.211 MB / 479 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.1402, allocations: 0.6729 MB / 479.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.096e-05/0.1402, allocations: 0 / 479.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.003e-05/0.1402, allocations: 11.44 kB / 479.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1402, allocations: 0 / 479.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.1627, allocations: 4.49 MB / 484.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/7.872, allocations: 15.66 kB / 484.2 MB, free: 14.96 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches