Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009903/0.0009903, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8818/0.8818, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2564/0.2564, allocations: 34.23 MB / 294.8 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 442.1 MB, free: 1.609 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.963e-05/2.16e-05, allocations: 9.094 kB / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00111/0.001131, allocations: 0.4892 MB / 442.6 MB, free: 1.113 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1569/0.1581, allocations: 1.58 MB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.557e-05/0.1581, allocations: 0 / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.1581, allocations: 0 / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.092e-06/0.1581, allocations: 0 / 444.2 MB, free: 43.22 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0004802/0.1586, allocations: 164 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.3e-05/0.1586, allocations: 4.969 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.1587, allocations: 0 / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.629e-05/0.1587, allocations: 5.562 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.446e-05/0.1587, allocations: 2.516 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.744e-06/0.1587, allocations: 0 / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.159, allocations: 121 kB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.815e-06/0.159, allocations: 0 / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.655e-05/0.159, allocations: 3.375 kB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.1591, allocations: 47.28 kB / 444.5 MB, free: 43.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1591, allocations: 4.562 kB / 444.5 MB, free: 43.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1591, allocations: 0 / 444.5 MB, free: 43.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1591, allocations: 3.938 kB / 444.6 MB, free: 43.17 MB / 410.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.0001868/0.1593, allocations: 267.6 kB / 444.8 MB, free: 42.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.1594, allocations: 13.88 kB / 444.8 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.694e-05/0.1594, allocations: 35.25 kB / 444.9 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.268e-05/0.1594, allocations: 6.094 kB / 444.9 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.117e-05/0.1594, allocations: 101.8 kB / 445 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.1594, allocations: 3.25 kB / 445 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-06/0.1595, allocations: 4.312 kB / 445 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.966e-05/0.1595, allocations: 58.62 kB / 445 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1595, allocations: 0.7812 kB / 445 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.321e-06/0.1595, allocations: 384 / 445 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1595, allocations: 10.28 kB / 445 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.646e-05/0.1596, allocations: 25.7 kB / 445.1 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.213e-05/0.1596, allocations: 119 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.147e-05/0.1597, allocations: 45.89 kB / 445.2 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.13e-05/0.1597, allocations: 34.5 kB / 445.3 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-06/0.1597, allocations: 2.062 kB / 445.3 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.023e-05/0.1597, allocations: 58.55 kB / 445.3 MB, free: 42.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.1597, allocations: 0 / 445.3 MB, free: 42.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001274/0.1598, allocations: 120.6 kB / 445.4 MB, free: 42.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.206e-05/0.1598, allocations: 81.2 kB / 445.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.198e-05/0.1599, allocations: 93.12 kB / 445.6 MB, free: 41.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-06/0.1599, allocations: 25.7 kB / 445.6 MB, free: 41.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.699e-06/0.1599, allocations: 84.27 kB / 445.7 MB, free: 41.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.1599, allocations: 5.969 kB / 445.7 MB, free: 41.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.916e-05/0.1599, allocations: 16.22 kB / 445.7 MB, free: 41.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.285e-05/0.1599, allocations: 314 kB / 446 MB, free: 41.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.039e-05/0.1599, allocations: 29.64 kB / 446.1 MB, free: 41.49 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.354e-06/0.1599, allocations: 28.39 kB / 446.1 MB, free: 41.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.473e-05/0.16, allocations: 61.83 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.16, allocations: 2.688 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.324e-05/0.16, allocations: 92.56 kB / 446.3 MB, free: 41.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.16, allocations: 34.77 kB / 446.3 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.16, allocations: 0 / 446.3 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.16, allocations: 0 / 446.3 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.16, allocations: 9.656 kB / 446.3 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.16, allocations: 2.531 kB / 446.3 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.188e-05/0.1601, allocations: 0 / 446.3 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.1601, allocations: 0 / 446.3 MB, free: 41.25 MB / 410.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: 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 3.488e-05/0.1601, allocations: 141.3 kB / 446.4 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-06/0.1601, allocations: 3.062 kB / 446.4 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.755e-06/0.1601, allocations: 3 kB / 446.4 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1601, allocations: 4 kB / 446.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1601, allocations: 4.781 kB / 446.5 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1601, allocations: 3.234 kB / 446.5 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.026e-05/0.1601, allocations: 115.7 kB / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.1602, allocations: 0 / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-07/0.1602, allocations: 0 / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.72e-07/0.1602, allocations: 0 / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-06/0.1602, allocations: 2.969 kB / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.8e-07/0.1602, allocations: 0 / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1602, allocations: 3.938 kB / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.292e-05/0.1602, allocations: 120.1 kB / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-06/0.1602, allocations: 7.469 kB / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-06/0.1602, allocations: 5.656 kB / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.588e-06/0.1602, allocations: 0 / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-06/0.1602, allocations: 3.938 kB / 446.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.1602, allocations: 2.938 kB / 446.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.123e-06/0.1602, allocations: 79.22 kB / 446.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1602, allocations: 0 / 446.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001326/0.1604, allocations: 14.19 kB / 446.8 MB, free: 40.73 MB / 410.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: 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.0002917/0.1607, allocations: 0.698 MB / 447.5 MB, free: 40.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.541e-05/0.1607, allocations: 118 kB / 447.6 MB, free: 39.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.1607, allocations: 0 / 447.6 MB, free: 39.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.187e-05/0.1607, allocations: 86.89 kB / 447.7 MB, free: 39.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.032e-05/0.1608, allocations: 6.594 kB / 447.7 MB, free: 39.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001896/0.161, allocations: 140.2 kB / 447.8 MB, free: 39.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.11e-05/0.161, allocations: 53.95 kB / 447.9 MB, free: 39.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.408e-06/0.161, allocations: 3.938 kB / 447.9 MB, free: 39.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.052e-05/0.1611, allocations: 12.62 kB / 447.9 MB, free: 39.59 MB / 410.7 MB Notification: Performance of SimCode: time 3.5e-07/0.1611, allocations: 0 / 447.9 MB, free: 39.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01506/0.1761, allocations: 2.145 MB / 450.1 MB, free: 38.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.533/6.709, allocations: 5.938 kB / 450.1 MB, free: 38.65 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.6002028407529]