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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001336/0.001336, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2338/0.2338, allocations: 46.13 MB / 344.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 79.86 kB / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3465, allocations: 62.43 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001521/0.3481, allocations: 0.4898 MB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.3503, allocations: 1.644 MB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.45e-05/0.3504, allocations: 1.719 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.162e-05/0.3504, allocations: 0 / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.491e-06/0.3504, allocations: 0 / 0.5327 GB, free: 11.67 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.0006304/0.351, allocations: 167.2 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.381e-05/0.3511, allocations: 2.219 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.679e-05/0.3511, allocations: 1.062 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.675e-05/0.3512, allocations: 5.062 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.919e-05/0.3512, allocations: 0 / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.3512, allocations: 5.234 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000381/0.3516, allocations: 118.4 kB / 0.533 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.746e-06/0.3516, allocations: 4 kB / 0.533 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.905e-05/0.3516, allocations: 1.25 kB / 0.533 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001234/0.3518, allocations: 40.81 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3518, allocations: 1.156 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3518, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.3518, allocations: 0 / 0.533 GB, free: 11.48 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.0003408/0.3521, allocations: 345.3 kB / 0.5333 GB, free: 11.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3522, allocations: 9.844 kB / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.667e-05/0.3522, allocations: 38.73 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.3523, allocations: 0.9375 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.3524, allocations: 165.9 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3524, allocations: 4.312 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.3524, allocations: 5.688 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.146e-05/0.3525, allocations: 31.52 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3526, allocations: 0 / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.3526, allocations: 1.406 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3526, allocations: 0 / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.611e-05/0.3526, allocations: 1.562 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.3527, allocations: 151.4 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.082e-05/0.3528, allocations: 20.14 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.476e-05/0.3528, allocations: 10.83 kB / 0.5338 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.3528, allocations: 3.984 kB / 0.5338 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.869e-05/0.3529, allocations: 61.48 kB / 0.5338 GB, free: 10.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3529, allocations: 0 / 0.5338 GB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001643/0.3531, allocations: 63.2 kB / 0.5339 GB, free: 10.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.3531, allocations: 81.23 kB / 0.534 GB, free: 10.33 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.368e-05/0.3532, allocations: 103.6 kB / 0.5341 GB, free: 10.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.3532, allocations: 25.7 kB / 0.5341 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.3533, allocations: 80.14 kB / 0.5342 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.3533, allocations: 0 / 0.5342 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.3533, allocations: 13.41 kB / 0.5342 GB, free: 10.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.3534, allocations: 310.8 kB / 0.5345 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.365e-05/0.3535, allocations: 7.922 kB / 0.5345 GB, free: 9.773 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.069e-06/0.3535, allocations: 5.969 kB / 0.5345 GB, free: 9.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.135e-05/0.3535, allocations: 64.02 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3536, allocations: 0 / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.592e-05/0.3536, allocations: 57.5 kB / 0.5346 GB, free: 9.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.3537, allocations: 39.22 kB / 0.5346 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3537, allocations: 1.844 kB / 0.5346 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3537, allocations: 4 kB / 0.5346 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3537, allocations: 0 / 0.5346 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3537, allocations: 0 / 0.5346 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.584e-05/0.3537, allocations: 6.062 kB / 0.5347 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.3537, allocations: 0 / 0.5347 GB, free: 9.586 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 0.000104/0.3539, allocations: 137.2 kB / 0.5348 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-06/0.3539, allocations: 5.625 kB / 0.5348 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.183e-05/0.3539, allocations: 7.125 kB / 0.5348 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3539, allocations: 3.938 kB / 0.5348 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3539, allocations: 1.375 kB / 0.5348 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3539, allocations: 0 / 0.5348 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.354, allocations: 147.7 kB / 0.5349 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3541, allocations: 4 kB / 0.5349 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3541, allocations: 0 / 0.5349 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3541, allocations: 5 kB / 0.535 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.331e-06/0.3541, allocations: 0 / 0.535 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3541, allocations: 1.188 kB / 0.535 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3541, allocations: 0 / 0.535 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.731e-05/0.3542, allocations: 90.83 kB / 0.535 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.687e-05/0.3543, allocations: 85.08 kB / 0.5351 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.3543, allocations: 1.469 kB / 0.5351 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-06/0.3543, allocations: 0 / 0.5351 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.391e-05/0.3543, allocations: 5.516 kB / 0.5351 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.3543, allocations: 0 / 0.5351 GB, free: 9.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.3543, allocations: 79.22 kB / 0.5352 GB, free: 8.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3544, allocations: 0 / 0.5352 GB, free: 8.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.3546, allocations: 17.47 kB / 0.5352 GB, free: 8.938 MB / 398.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.000616/0.3552, allocations: 0.6761 MB / 0.5359 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.3553, allocations: 56.09 kB / 0.5359 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3553, allocations: 0 / 0.5359 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.16e-05/0.3554, allocations: 62.5 kB / 0.536 GB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.3555, allocations: 8.906 kB / 0.536 GB, free: 8.137 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003037/0.3558, allocations: 114.7 kB / 0.5361 GB, free: 7.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.3561, allocations: 0.6703 MB / 0.5368 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.3561, allocations: 3.938 kB / 0.5368 GB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/0.3562, allocations: 8.812 kB / 0.5368 GB, free: 7.289 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3562, allocations: 0 / 0.5368 GB, free: 7.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.38, allocations: 1.472 MB / 0.5382 GB, free: 6.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.904/8.284, allocations: 13.12 kB / 0.5382 GB, free: 6.406 MB / 398.1 MB (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) 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