Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.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.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",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.000719/0.0007188, allocations: 93.42 kB / 17.35 MB, free: 6.344 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.0008153/0.0008154, allocations: 171.3 kB / 18.25 MB, free: 5.504 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.29/1.29, allocations: 223.3 MB / 242.3 MB, free: 14.46 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.1975/0.1975, allocations: 44.24 MB / 337.7 MB, free: 2.488 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002954/0.0002955, allocations: 8 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1178, allocations: 61.93 MB / 472.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005683/0.1184, allocations: 218.9 kB / 472.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.1203, allocations: 1.367 MB / 473.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.085e-06/0.1203, allocations: 0 / 473.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.237e-06/0.1203, allocations: 0 / 473.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.565e-06/0.1203, allocations: 0 / 473.9 MB, free: 11.62 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:4:3-36:22:writable] Warning: Pure function ‘ModelicaTest.Math.ScalarFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.1208, allocations: 90.91 kB / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.886e-05/0.1209, allocations: 4 kB / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.1209, allocations: 0 / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.096e-05/0.1209, allocations: 11.97 kB / 474 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.159e-05/0.121, allocations: 0 / 474 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-06/0.121, allocations: 0 / 474 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.1211, allocations: 43.97 kB / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.1212, allocations: 3.938 kB / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.52e-05/0.1212, allocations: 25.7 kB / 474.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.1213, allocations: 39.94 kB / 474.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1213, allocations: 0 / 474.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1213, allocations: 4 kB / 474.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.1214, allocations: 0 / 474.2 MB, free: 11.4 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.0002767/0.1216, allocations: 353.2 kB / 474.5 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1217, allocations: 8.031 kB / 474.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.795e-05/0.1217, allocations: 30.75 kB / 474.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.249e-05/0.1218, allocations: 0.9375 kB / 474.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.598e-05/0.1219, allocations: 160.4 kB / 474.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1219, allocations: 4.375 kB / 474.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-06/0.1219, allocations: 384 / 474.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.056e-05/0.122, allocations: 37.83 kB / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.122, allocations: 0 / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.122, allocations: 7.984 kB / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.122, allocations: 0 / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.06e-05/0.122, allocations: 3.984 kB / 474.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000121/0.1222, allocations: 141.7 kB / 474.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.54e-05/0.1222, allocations: 22.55 kB / 474.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.441e-05/0.1222, allocations: 4.859 kB / 474.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-06/0.1222, allocations: 7.938 kB / 474.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.1223, allocations: 68.27 kB / 475 MB, free: 10.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1223, allocations: 0 / 475 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001526/0.1225, allocations: 67.33 kB / 475.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.1225, allocations: 77.11 kB / 475.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.196e-05/0.1225, allocations: 89.86 kB / 475.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.1226, allocations: 29.64 kB / 475.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.83e-05/0.1226, allocations: 84.27 kB / 475.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.1226, allocations: 0 / 475.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.165e-05/0.1227, allocations: 13.72 kB / 475.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.1227, allocations: 318.8 kB / 475.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.504e-06/0.1228, allocations: 0 / 475.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-06/0.1228, allocations: 0 / 475.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.384e-05/0.1228, allocations: 60.27 kB / 475.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1228, allocations: 0 / 475.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.426e-05/0.1229, allocations: 71.41 kB / 475.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.1229, allocations: 37.62 kB / 475.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.123, allocations: 0 / 475.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.123, allocations: 0 / 475.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.123, allocations: 0 / 475.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.123, allocations: 0 / 475.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.247e-05/0.123, allocations: 4 kB / 475.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.123, allocations: 0 / 475.8 MB, free: 9.453 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.471e-05/0.1231, allocations: 131.5 kB / 476 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.118e-05/0.1232, allocations: 11.88 kB / 476 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.001e-05/0.1232, allocations: 11.08 kB / 476 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1232, allocations: 3.984 kB / 476 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1232, allocations: 0 / 476 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1232, allocations: 0 / 476 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.129e-05/0.1233, allocations: 141.7 kB / 476.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1233, allocations: 4 kB / 476.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1233, allocations: 0 / 476.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1233, allocations: 3.938 kB / 476.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.1233, allocations: 4 kB / 476.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1233, allocations: 0 / 476.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1233, allocations: 4 kB / 476.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.932e-05/0.1234, allocations: 98.7 kB / 476.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.264e-05/0.1235, allocations: 81.05 kB / 476.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.1235, allocations: 3.984 kB / 476.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.184e-05/0.1235, allocations: 8 kB / 476.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.264e-05/0.1235, allocations: 0 / 476.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.1235, allocations: 0 / 476.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.578e-05/0.1236, allocations: 79.31 kB / 476.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1236, allocations: 0 / 476.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002098/0.1238, allocations: 12 kB / 476.4 MB, free: 8.758 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0005018/0.1243, allocations: 0.6736 MB / 477.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.611e-05/0.1244, allocations: 59.34 kB / 477.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1244, allocations: 0 / 477.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.91e-05/0.1244, allocations: 55.41 kB / 477.2 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.1245, allocations: 4.281 kB / 477.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002642/0.1248, allocations: 104.4 kB / 477.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.125, allocations: 0.6731 MB / 478 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.144e-06/0.1251, allocations: 128 / 478 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.165e-05/0.1251, allocations: 15.38 kB / 478 MB, free: 7.059 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1251, allocations: 0 / 478 MB, free: 7.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01101/0.1361, allocations: 1.29 MB / 479.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.1363, allocations: 233.3 kB / 479.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.638/1.775, allocations: 0 / 479.5 MB, free: 5.609 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches