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.001271/0.001271, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001249/0.00125, allocations: 183.9 kB / 18.71 MB, free: 4.34 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.441/1.441, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2466/0.2466, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.4186, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001423/0.42, allocations: 0.5023 MB / 0.5189 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.4228, allocations: 2.291 MB / 0.5211 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.507e-05/0.4228, allocations: 0 / 0.5211 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.4229, allocations: 3.938 kB / 0.5212 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.162e-06/0.4229, allocations: 1 kB / 0.5212 GB, free: 1.371 MB / 382.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.00152/0.4244, allocations: 0.565 MB / 0.5217 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.673e-05/0.4245, allocations: 6.312 kB / 0.5217 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.297e-05/0.4245, allocations: 5.859 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.566e-05/0.4245, allocations: 1.609 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.592e-05/0.4246, allocations: 0 / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.4246, allocations: 1.062 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.4257, allocations: 0.6925 MB / 0.5224 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.844e-06/0.4257, allocations: 3.984 kB / 0.5224 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.281e-05/0.4257, allocations: 5.406 kB / 0.5224 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006637/0.4264, allocations: 442.6 kB / 0.5228 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.4264, allocations: 1 kB / 0.5228 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4264, allocations: 3.938 kB / 0.5228 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.4264, allocations: 0 / 0.5228 GB, free: 0.7734 MB / 382.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.0003692/0.4268, allocations: 443.8 kB / 0.5233 GB, free: 332 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.4268, allocations: 10.69 kB / 0.5233 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.049e-05/0.4269, allocations: 31.59 kB / 0.5233 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.291e-05/0.4269, allocations: 2.75 kB / 0.5233 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.989e-05/0.427, allocations: 165.3 kB / 0.5235 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.427, allocations: 5.016 kB / 0.5235 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.427, allocations: 2.188 kB / 0.5235 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.388e-05/0.4271, allocations: 35.42 kB / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4271, allocations: 4 kB / 0.5235 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.4271, allocations: 0 / 0.5235 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.4271, allocations: 2.312 kB / 0.5235 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.179e-05/0.4271, allocations: 10.73 kB / 0.5235 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000272/0.4274, allocations: 225.7 kB / 0.5237 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.381e-05/0.4275, allocations: 24.89 kB / 0.5238 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.353e-05/0.4275, allocations: 14.12 kB / 0.5238 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.367e-06/0.4275, allocations: 0 / 0.5238 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/0.4276, allocations: 63.38 kB / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.4276, allocations: 0 / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001888/0.4278, allocations: 75.41 kB / 0.5239 GB, free: 15.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.4279, allocations: 77.11 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.299e-05/0.4279, allocations: 90.42 kB / 0.5241 GB, free: 15.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.4279, allocations: 29.7 kB / 0.5241 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.377e-05/0.428, allocations: 84.27 kB / 0.5242 GB, free: 15.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.428, allocations: 7.297 kB / 0.5242 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.874e-05/0.4281, allocations: 16 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4282, allocations: 311.6 kB / 0.5245 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.721e-05/0.4282, allocations: 6.562 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.105e-05/0.4283, allocations: 6.922 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.917e-05/0.4283, allocations: 63.11 kB / 0.5246 GB, free: 14.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.4283, allocations: 8 kB / 0.5246 GB, free: 14.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.038e-05/0.4284, allocations: 75.23 kB / 0.5246 GB, free: 14.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.4285, allocations: 32.16 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.4285, allocations: 0 / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.4285, allocations: 0.6562 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.474e-05/0.4285, allocations: 0.9062 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.4285, allocations: 0 / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.603e-05/0.4286, allocations: 2.297 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.4286, allocations: 1.688 kB / 0.5247 GB, free: 14.75 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.0001047/0.4287, allocations: 142.5 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.535e-05/0.4287, allocations: 5.625 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.056e-05/0.4287, allocations: 7.828 kB / 0.5248 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.4287, allocations: 0 / 0.5248 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4287, allocations: 1.562 kB / 0.5248 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.4288, allocations: 0.6094 kB / 0.5248 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.429, allocations: 303.7 kB / 0.5251 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4291, allocations: 0 / 0.5251 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.7e-06/0.4291, allocations: 4.141 kB / 0.5251 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.4291, allocations: 32 / 0.5251 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.4291, allocations: 4 kB / 0.5251 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4291, allocations: 0.6562 kB / 0.5251 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4291, allocations: 0 / 0.5251 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.4292, allocations: 166 kB / 0.5253 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.4293, allocations: 86.78 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.4293, allocations: 1.094 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.144e-05/0.4294, allocations: 1.797 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.027e-05/0.4294, allocations: 6.094 kB / 0.5254 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.4294, allocations: 0 / 0.5254 GB, free: 13.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.978e-05/0.4295, allocations: 80.75 kB / 0.5254 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4295, allocations: 0 / 0.5254 GB, free: 13.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005663/0.43, allocations: 161.1 kB / 0.5256 GB, free: 13.84 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.001257/0.4313, allocations: 0.9511 MB / 0.5265 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.4314, allocations: 70.12 kB / 0.5266 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.4315, allocations: 0 / 0.5266 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.501e-05/0.4315, allocations: 57.95 kB / 0.5267 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.4317, allocations: 8.469 kB / 0.5267 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.4329, allocations: 1.213 MB / 0.5278 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.4332, allocations: 0.6768 MB / 0.5285 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.105e-05/0.4332, allocations: 0.6562 kB / 0.5285 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.097e-05/0.4332, allocations: 8.906 kB / 0.5285 GB, free: 10.99 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4333, allocations: 0 / 0.5285 GB, free: 10.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02992/0.4632, allocations: 4.525 MB / 0.5329 GB, free: 8.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.199/8.662, allocations: 8.5 kB / 0.5329 GB, free: 8.867 MB / 398.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