Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.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 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 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 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.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",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.0009678/0.0009677, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009834/0.0009834, allocations: 185.1 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.4 MB / 223.1 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4226/0.4226, allocations: 43.57 MB / 315 MB, free: 9.059 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005435/0.0005436, allocations: 12 kB / 384.7 MB, free: 7.773 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1436, allocations: 58.86 MB / 443.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0007249/0.1444, allocations: 248.3 kB / 443.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003577/0.148, allocations: 2.071 MB / 445.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.479e-05/0.148, allocations: 0 / 445.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.719e-05/0.1481, allocations: 0 / 445.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.332e-06/0.1481, allocations: 0 / 445.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.1499, allocations: 403.2 kB / 446.2 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.283e-05/0.1499, allocations: 7.922 kB / 446.3 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.596e-05/0.15, allocations: 3.984 kB / 446.3 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.927e-05/0.15, allocations: 4 kB / 446.3 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.949e-05/0.15, allocations: 4 kB / 446.3 MB, free: 10.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.15, allocations: 0 / 446.3 MB, free: 10.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.1514, allocations: 0.6669 MB / 446.9 MB, free: 9.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.1515, allocations: 11.97 kB / 446.9 MB, free: 9.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.529e-05/0.1515, allocations: 25.7 kB / 447 MB, free: 9.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008404/0.1524, allocations: 383.2 kB / 447.3 MB, free: 8.977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1524, allocations: 3.938 kB / 447.4 MB, free: 8.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1524, allocations: 0 / 447.4 MB, free: 8.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1524, allocations: 0 / 447.4 MB, free: 8.973 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.0004734/0.1529, allocations: 405.3 kB / 447.7 MB, free: 8.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.1529, allocations: 8.031 kB / 447.8 MB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.915e-05/0.153, allocations: 38.64 kB / 447.8 MB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.153, allocations: 4.938 kB / 447.8 MB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.1532, allocations: 160.4 kB / 448 MB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.1532, allocations: 384 / 448 MB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.1532, allocations: 4.359 kB / 448 MB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.1533, allocations: 41.83 kB / 448 MB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1533, allocations: 0 / 448 MB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.1533, allocations: 4 kB / 448 MB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.1533, allocations: 4 kB / 448 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.334e-05/0.1534, allocations: 3.938 kB / 448 MB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002772/0.1537, allocations: 236.9 kB / 448.2 MB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.501e-05/0.1537, allocations: 22.55 kB / 448.3 MB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.483e-05/0.1537, allocations: 8.922 kB / 448.3 MB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.1538, allocations: 4 kB / 448.3 MB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.1538, allocations: 68.25 kB / 448.3 MB, free: 7.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.1538, allocations: 0 / 448.3 MB, free: 7.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002051/0.154, allocations: 71.34 kB / 448.4 MB, free: 7.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.1541, allocations: 77.11 kB / 448.5 MB, free: 7.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.35e-05/0.1541, allocations: 93.84 kB / 448.6 MB, free: 7.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.1542, allocations: 25.7 kB / 448.6 MB, free: 7.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.818e-05/0.1542, allocations: 88.2 kB / 448.7 MB, free: 7.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.1542, allocations: 3.906 kB / 448.7 MB, free: 7.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-05/0.1543, allocations: 13.72 kB / 448.7 MB, free: 7.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.1544, allocations: 310.8 kB / 449 MB, free: 7.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.199e-05/0.1545, allocations: 4 kB / 449 MB, free: 7.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.884e-06/0.1545, allocations: 4 kB / 449 MB, free: 7.055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.798e-05/0.1545, allocations: 60.27 kB / 449.1 MB, free: 6.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1545, allocations: 7.875 kB / 449.1 MB, free: 6.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.955e-05/0.1546, allocations: 75.45 kB / 449.2 MB, free: 6.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.1547, allocations: 29.7 kB / 449.2 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1547, allocations: 0 / 449.2 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1547, allocations: 0 / 449.2 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.507e-05/0.1547, allocations: 0 / 449.2 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.1547, allocations: 4 kB / 449.2 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.698e-05/0.1548, allocations: 4 kB / 449.2 MB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.1548, allocations: 3.984 kB / 449.2 MB, free: 6.84 MB / 382.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.783e-05/0.1549, allocations: 139.5 kB / 449.3 MB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.1549, allocations: 8.031 kB / 449.3 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.687e-05/0.1549, allocations: 3.125 kB / 449.3 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1549, allocations: 0 / 449.3 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1549, allocations: 0 / 449.3 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1549, allocations: 0 / 449.3 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.1552, allocations: 304.2 kB / 449.6 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1552, allocations: 0 / 449.6 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.296e-06/0.1552, allocations: 0 / 449.6 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.1552, allocations: 0 / 449.6 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.1552, allocations: 4.031 kB / 449.6 MB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1552, allocations: 7.938 kB / 449.7 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1552, allocations: 0 / 449.7 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.1554, allocations: 173.1 kB / 449.8 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/0.1554, allocations: 77.11 kB / 449.9 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.1554, allocations: 4 kB / 449.9 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.68e-05/0.1555, allocations: 0 / 449.9 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.217e-05/0.1555, allocations: 0 / 449.9 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.1555, allocations: 4.031 kB / 449.9 MB, free: 6.012 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.507e-05/0.1555, allocations: 75.28 kB / 450 MB, free: 5.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1555, allocations: 0 / 450 MB, free: 5.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004506/0.156, allocations: 131.9 kB / 450.1 MB, free: 5.809 MB / 382.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.001189/0.1572, allocations: 0.9127 MB / 451 MB, free: 4.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001167/0.1573, allocations: 71.33 kB / 451.1 MB, free: 4.785 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1573, allocations: 0 / 451.1 MB, free: 4.785 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.068e-05/0.1574, allocations: 59.47 kB / 451.2 MB, free: 4.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000195/0.1576, allocations: 4 kB / 451.2 MB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.1587, allocations: 1.193 MB / 452.3 MB, free: 3.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.159, allocations: 0.677 MB / 453 MB, free: 2.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.184e-05/0.159, allocations: 0 / 453 MB, free: 2.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.856e-05/0.159, allocations: 11.44 kB / 453 MB, free: 2.719 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.159, allocations: 0 / 453 MB, free: 2.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2462/0.4052, allocations: 4.138 MB / 457.2 MB, free: 43.63 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.4054, allocations: 224.4 kB / 457.4 MB, free: 43.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.385, allocations: 2.75 kB / 457.4 MB, free: 43.38 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches