Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 112.2 kB / 21.22 MB, free: 0.7461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 210 kB / 24.53 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.379/1.379, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2191/0.2191, allocations: 46.93 MB / 361.6 MB, free: 4.281 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 63.91 kB / 0.4969 GB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3212, allocations: 66.04 MB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001668/0.3229, allocations: 489.1 kB / 0.5619 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.3252, allocations: 1.664 MB / 0.5635 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.39e-05/0.3252, allocations: 0 / 0.5635 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.529e-05/0.3252, allocations: 0 / 0.5635 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.3252, allocations: 0 / 0.5635 GB, free: 2.324 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0006896/0.3259, allocations: 175.3 kB / 0.5637 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.77e-05/0.3259, allocations: 4 kB / 0.5637 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.01e-05/0.326, allocations: 0 / 0.5637 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.41e-05/0.326, allocations: 0 / 0.5637 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.479e-05/0.326, allocations: 4 kB / 0.5637 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.326, allocations: 0 / 0.5637 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004008/0.3264, allocations: 127.8 kB / 0.5638 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.665e-06/0.3264, allocations: 0 / 0.5638 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.095e-05/0.3265, allocations: 0 / 0.5638 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.3266, allocations: 37.78 kB / 0.5638 GB, free: 1.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3266, allocations: 4 kB / 0.5638 GB, free: 1.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3266, allocations: 0 / 0.5638 GB, free: 1.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3266, allocations: 0 / 0.5638 GB, free: 1.98 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.0003032/0.3269, allocations: 276 kB / 0.5641 GB, free: 1.676 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.3269, allocations: 12.03 kB / 0.5641 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.645e-05/0.327, allocations: 8.172 kB / 0.5641 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.336e-05/0.327, allocations: 30.75 kB / 0.5642 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.023e-05/0.327, allocations: 0.9375 kB / 0.5642 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.289e-05/0.3271, allocations: 106.5 kB / 0.5643 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-06/0.3271, allocations: 384 / 0.5643 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-06/0.3271, allocations: 4.375 kB / 0.5643 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.574e-05/0.3272, allocations: 33.62 kB / 0.5643 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.3272, allocations: 0 / 0.5643 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.3272, allocations: 0 / 0.5643 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3272, allocations: 8 kB / 0.5643 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.643e-05/0.3272, allocations: 3.938 kB / 0.5643 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001707/0.3274, allocations: 112.8 kB / 0.5644 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.284e-05/0.3274, allocations: 22.61 kB / 0.5644 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.287e-05/0.3274, allocations: 4.859 kB / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.3275, allocations: 3.938 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.666e-05/0.3275, allocations: 60.31 kB / 0.5645 GB, free: 1.164 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3275, allocations: 8 kB / 0.5645 GB, free: 1.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001477/0.3276, allocations: 59.34 kB / 0.5646 GB, free: 1.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.3277, allocations: 81.11 kB / 0.5646 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.99e-05/0.3278, allocations: 97.81 kB / 0.5647 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.3278, allocations: 25.7 kB / 0.5648 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.755e-05/0.3278, allocations: 80.14 kB / 0.5648 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.3278, allocations: 0 / 0.5648 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.3279, allocations: 17.7 kB / 0.5648 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3281, allocations: 319 kB / 0.5652 GB, free: 436 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.365e-06/0.3281, allocations: 3.938 kB / 0.5652 GB, free: 432 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.3281, allocations: 0 / 0.5652 GB, free: 432 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.127e-05/0.3281, allocations: 64.27 kB / 0.5652 GB, free: 352 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3281, allocations: 0 / 0.5652 GB, free: 352 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.467e-05/0.3282, allocations: 71.27 kB / 0.5653 GB, free: 268 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.3283, allocations: 29.7 kB / 0.5653 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.3283, allocations: 0 / 0.5653 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.3283, allocations: 8.094 kB / 0.5653 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.3283, allocations: 3.938 kB / 0.5653 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.3283, allocations: 0 / 0.5653 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.353e-05/0.3283, allocations: 0 / 0.5653 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.3283, allocations: 0 / 0.5653 GB, free: 220 kB / 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.139e-05/0.3284, allocations: 139.5 kB / 0.5655 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.3284, allocations: 7.922 kB / 0.5655 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.124e-05/0.3284, allocations: 6.984 kB / 0.5655 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.3284, allocations: 0 / 0.5655 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.3284, allocations: 4 kB / 0.5655 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3284, allocations: 0 / 0.5655 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.3285, allocations: 124.8 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3285, allocations: 0 / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-06/0.3285, allocations: 3.938 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3285, allocations: 0 / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-06/0.3285, allocations: 0 / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.057e-05/0.3285, allocations: 7.984 kB / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.3285, allocations: 0 / 0.5656 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.727e-05/0.3286, allocations: 90.78 kB / 0.5657 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.516e-06/0.3286, allocations: 7.938 kB / 0.5657 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.3287, allocations: 3.984 kB / 0.5657 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.3287, allocations: 0 / 0.5657 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.185e-06/0.3287, allocations: 0 / 0.5657 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-06/0.3287, allocations: 4 kB / 0.5657 GB, free: 15.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.977e-05/0.3287, allocations: 75.28 kB / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3287, allocations: 0 / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.3289, allocations: 15.94 kB / 0.5658 GB, free: 15.65 MB / 414.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.0005657/0.3295, allocations: 0.681 MB / 0.5665 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.047e-05/0.3296, allocations: 59.44 kB / 0.5665 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3296, allocations: 0 / 0.5665 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.882e-05/0.3296, allocations: 59.41 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.3298, allocations: 2.344 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002758/0.33, allocations: 122.6 kB / 0.5667 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.3304, allocations: 0.669 MB / 0.5673 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.42e-06/0.3304, allocations: 0 / 0.5673 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.3304, allocations: 7.438 kB / 0.5674 GB, free: 13.93 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3304, allocations: 0 / 0.5674 GB, free: 13.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.35, allocations: 1.637 MB / 0.569 GB, free: 12.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.98, allocations: 4 kB / 0.569 GB, free: 12.44 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 13.7088130430202]