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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 111.1 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2222/0.2222, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 75.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4186, allocations: 62.44 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001806/0.4205, allocations: 499.7 kB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.4229, allocations: 1.639 MB / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.423, allocations: 0 / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.423, allocations: 0 / 0.5337 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.807e-06/0.423, allocations: 0 / 0.5337 GB, free: 11.93 MB / 398.1 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.0007194/0.4238, allocations: 168.7 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.259e-05/0.4238, allocations: 1.5 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.031e-05/0.4239, allocations: 1.438 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.13e-05/0.4239, allocations: 9.516 kB / 0.5339 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.132e-05/0.4239, allocations: 3.938 kB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.774e-06/0.4239, allocations: 0 / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003819/0.4243, allocations: 115.2 kB / 0.534 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.097e-06/0.4243, allocations: 3.984 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.062e-05/0.4244, allocations: 9.156 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.4245, allocations: 36.39 kB / 0.5341 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4245, allocations: 1.312 kB / 0.5341 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4245, allocations: 0 / 0.5341 GB, free: 11.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.4245, allocations: 0 / 0.5341 GB, free: 11.73 MB / 398.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.0003502/0.4249, allocations: 349.1 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4249, allocations: 9.125 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.185e-05/0.4249, allocations: 2.25 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.4251, allocations: 160.4 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.4251, allocations: 384 / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-06/0.4251, allocations: 1.156 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.919e-05/0.4252, allocations: 44.88 kB / 0.5346 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4252, allocations: 0 / 0.5346 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.4253, allocations: 1.312 kB / 0.5346 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.4253, allocations: 0 / 0.5346 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.974e-05/0.4253, allocations: 5.188 kB / 0.5346 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.4255, allocations: 142.9 kB / 0.5347 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.577e-05/0.4255, allocations: 21.27 kB / 0.5348 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.655e-05/0.4255, allocations: 12.84 kB / 0.5348 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.043e-06/0.4255, allocations: 1.312 kB / 0.5348 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.56e-05/0.4256, allocations: 61.52 kB / 0.5348 GB, free: 10.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.4256, allocations: 0 / 0.5348 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001764/0.4258, allocations: 62.88 kB / 0.5349 GB, free: 10.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.4258, allocations: 82.36 kB / 0.535 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.986e-05/0.4259, allocations: 93.84 kB / 0.5351 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.4259, allocations: 25.83 kB / 0.5351 GB, free: 10.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.794e-05/0.4259, allocations: 85.42 kB / 0.5352 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.426, allocations: 0 / 0.5352 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.426, allocations: 12.31 kB / 0.5352 GB, free: 10.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4261, allocations: 310.8 kB / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.4261, allocations: 1.281 kB / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.114e-06/0.4261, allocations: 1.438 kB / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.043e-05/0.4262, allocations: 63.92 kB / 0.5355 GB, free: 10 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4262, allocations: 4.062 kB / 0.5355 GB, free: 10 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.953e-05/0.4263, allocations: 65.98 kB / 0.5356 GB, free: 9.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/0.4264, allocations: 33.45 kB / 0.5356 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.4264, allocations: 3.938 kB / 0.5356 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.4264, allocations: 1.094 kB / 0.5356 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.4264, allocations: 0 / 0.5356 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.4264, allocations: 0 / 0.5356 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.68e-05/0.4264, allocations: 1.125 kB / 0.5356 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.4264, allocations: 1.125 kB / 0.5356 GB, free: 9.895 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: 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 9.379e-05/0.4265, allocations: 149.6 kB / 0.5358 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.072e-05/0.4266, allocations: 5.125 kB / 0.5358 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.217e-05/0.4266, allocations: 7.062 kB / 0.5358 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.4266, allocations: 0 / 0.5358 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4266, allocations: 1.094 kB / 0.5358 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.4266, allocations: 84.95 kB / 0.5359 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.4267, allocations: 5.094 kB / 0.5359 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.435e-06/0.4267, allocations: 1.188 kB / 0.5359 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.4267, allocations: 1.125 kB / 0.5359 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001247/0.4268, allocations: 198.9 kB / 0.5361 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001487/0.427, allocations: 242.8 kB / 0.5363 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.784e-05/0.427, allocations: 2.625 kB / 0.5363 GB, free: 9.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.331e-05/0.427, allocations: 75.28 kB / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of Backend: time 2e-07/0.4271, allocations: 0 / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005795/0.4276, allocations: 188.5 kB / 0.5366 GB, free: 8.926 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004632/0.4281, allocations: 0.5788 MB / 0.5371 GB, free: 8.293 MB / 398.1 MB Notification: Performance of Templates: time 0.00348/0.4316, allocations: 0.6558 MB / 0.5378 GB, free: 7.949 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches