Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008804/0.0008805, allocations: 166.8 kB / 16.72 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008414/0.0008412, allocations: 93.28 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3368/0.3368, allocations: 43.56 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003501, allocations: 12 kB / 432.1 MB, free: 5.488 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1013, allocations: 58.85 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006033/0.1019, allocations: 244.3 kB / 491.2 MB, free: 10.31 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.1042, allocations: 1.931 MB / 493.1 MB, free: 8.359 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.468e-05/0.1043, allocations: 0 / 493.1 MB, free: 8.359 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.214e-05/0.1043, allocations: 0 / 493.1 MB, free: 8.359 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.364e-06/0.1043, allocations: 0 / 493.1 MB, free: 8.359 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.1054, allocations: 403.1 kB / 493.5 MB, free: 7.965 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.824e-05/0.1054, allocations: 0 / 493.5 MB, free: 7.965 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.965e-05/0.1055, allocations: 0 / 493.5 MB, free: 7.965 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.6e-05/0.1055, allocations: 4 kB / 493.5 MB, free: 7.961 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.804e-05/0.1055, allocations: 0 / 493.5 MB, free: 7.961 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.603e-06/0.1055, allocations: 4 kB / 493.5 MB, free: 7.957 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009134/0.1065, allocations: 0.6551 MB / 494.1 MB, free: 7.301 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-06/0.1065, allocations: 11.88 kB / 494.2 MB, free: 7.289 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.311e-05/0.1065, allocations: 25.7 kB / 494.2 MB, free: 7.258 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.1069, allocations: 251.5 kB / 494.4 MB, free: 7.012 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1069, allocations: 4 kB / 494.4 MB, free: 7.008 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1069, allocations: 0 / 494.4 MB, free: 7.008 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1069, allocations: 0 / 494.4 MB, free: 7.008 MB / 378.7 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.000374/0.1073, allocations: 401.3 kB / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1073, allocations: 12.03 kB / 494.8 MB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.547e-05/0.1074, allocations: 42.64 kB / 494.9 MB, free: 6.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.131e-05/0.1074, allocations: 0.9375 kB / 494.9 MB, free: 6.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.17e-05/0.1075, allocations: 164.3 kB / 495 MB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1075, allocations: 4.375 kB / 495 MB, free: 6.297 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.1075, allocations: 384 / 495 MB, free: 6.297 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.513e-05/0.1076, allocations: 37.81 kB / 495.1 MB, free: 6.254 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.1076, allocations: 0 / 495.1 MB, free: 6.254 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.342e-06/0.1076, allocations: 4 kB / 495.1 MB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1076, allocations: 0 / 495.1 MB, free: 6.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.88e-05/0.1077, allocations: 11.88 kB / 495.1 MB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002065/0.1079, allocations: 224.9 kB / 495.3 MB, free: 5.969 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.569e-05/0.1079, allocations: 26.59 kB / 495.3 MB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.388e-05/0.108, allocations: 12.92 kB / 495.3 MB, free: 5.918 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.108, allocations: 4 kB / 495.4 MB, free: 5.914 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.108, allocations: 64.2 kB / 495.4 MB, free: 5.836 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.108, allocations: 0 / 495.4 MB, free: 5.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001792/0.1082, allocations: 71.39 kB / 495.5 MB, free: 5.754 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.1083, allocations: 77.11 kB / 495.6 MB, free: 5.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.502e-05/0.1083, allocations: 89.86 kB / 495.6 MB, free: 5.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.1083, allocations: 25.7 kB / 495.7 MB, free: 5.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.365e-05/0.1084, allocations: 84.27 kB / 495.8 MB, free: 5.445 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.1084, allocations: 8.188 kB / 495.8 MB, free: 5.438 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/0.1084, allocations: 0 / 495.8 MB, free: 5.438 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1085, allocations: 318.8 kB / 496.1 MB, free: 5.117 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-06/0.1085, allocations: 0 / 496.1 MB, free: 5.117 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.811e-06/0.1085, allocations: 4 kB / 496.1 MB, free: 5.113 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.407e-05/0.1086, allocations: 68.2 kB / 496.1 MB, free: 5.031 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1086, allocations: 3.938 kB / 496.2 MB, free: 5.027 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.77e-05/0.1087, allocations: 67.48 kB / 496.2 MB, free: 4.949 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.1087, allocations: 33.7 kB / 496.2 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1087, allocations: 0 / 496.2 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1088, allocations: 0 / 496.2 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.271e-05/0.1088, allocations: 0 / 496.2 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.1088, allocations: 4 kB / 496.3 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.1088, allocations: 3.938 kB / 496.3 MB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.1088, allocations: 0 / 496.3 MB, free: 4.902 MB / 378.7 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 (result,$outputAlias_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.295e-05/0.1089, allocations: 143.5 kB / 496.4 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.103e-05/0.1089, allocations: 0 / 496.4 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.53e-05/0.1089, allocations: 15.05 kB / 496.4 MB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.109, allocations: 0 / 496.4 MB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.109, allocations: 0 / 496.4 MB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.109, allocations: 0 / 496.4 MB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002243/0.1092, allocations: 300.2 kB / 496.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.1092, allocations: 0 / 496.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-06/0.1092, allocations: 0 / 496.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1092, allocations: 0 / 496.7 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.1092, allocations: 4 kB / 496.7 MB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1092, allocations: 4.031 kB / 496.7 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1092, allocations: 0 / 496.7 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.1094, allocations: 173.1 kB / 496.9 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.029e-05/0.1095, allocations: 77.11 kB / 497 MB, free: 4.082 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.1095, allocations: 11.92 kB / 497 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.761e-05/0.1095, allocations: 0 / 497 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.1095, allocations: 0 / 497 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.1096, allocations: 0 / 497 MB, free: 4.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.28e-05/0.1096, allocations: 83.31 kB / 497.1 MB, free: 3.988 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1096, allocations: 0 / 497.1 MB, free: 3.988 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003781/0.11, allocations: 123.9 kB / 497.2 MB, free: 3.867 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/0.1111, allocations: 0.9091 MB / 498.1 MB, free: 2.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.001e-05/0.1112, allocations: 63.34 kB / 498.1 MB, free: 2.855 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1112, allocations: 0 / 498.1 MB, free: 2.855 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.233e-05/0.1112, allocations: 67.33 kB / 498.2 MB, free: 2.777 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.1114, allocations: 8.125 kB / 498.2 MB, free: 2.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004998/0.1119, allocations: 370.3 kB / 498.6 MB, free: 2.355 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.1121, allocations: 0.673 MB / 499.3 MB, free: 1.656 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.671e-05/0.1122, allocations: 15.38 kB / 499.3 MB, free: 1.645 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1122, allocations: 0 / 499.3 MB, free: 1.645 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.068/4.18, allocations: 3.444 MB / 0.4909 GB, free: 41.14 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches