Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009941/0.0009942, allocations: 200.3 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007851/0.0007852, allocations: 98.98 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3582/0.3582, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002837/0.0002837, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3206, allocations: 62.97 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006032/0.3213, allocations: 217 kB / 0.5162 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.323, allocations: 1.558 MB / 0.5177 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.077e-05/0.323, allocations: 0 / 0.5177 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.323, allocations: 0 / 0.5177 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.854e-06/0.323, allocations: 0 / 0.5177 GB, free: 35.92 MB / 378.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.0004947/0.3235, allocations: 135.3 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.402e-05/0.3236, allocations: 3.141 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.067e-05/0.3236, allocations: 3 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.75e-05/0.3236, allocations: 0 / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.366e-05/0.3237, allocations: 0 / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.673e-06/0.3237, allocations: 0 / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002533/0.3239, allocations: 106 kB / 0.5179 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-06/0.324, allocations: 0 / 0.5179 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.696e-05/0.324, allocations: 28.77 kB / 0.518 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.3241, allocations: 71.06 kB / 0.518 GB, free: 35.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.3241, allocations: 4 kB / 0.518 GB, free: 35.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3241, allocations: 0 / 0.518 GB, free: 35.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.3241, allocations: 0 / 0.518 GB, free: 35.74 MB / 378.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.0002364/0.3244, allocations: 355.9 kB / 0.5184 GB, free: 35.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3244, allocations: 11.62 kB / 0.5184 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.291e-05/0.3245, allocations: 30.75 kB / 0.5184 GB, free: 35.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.21e-05/0.3245, allocations: 0.9375 kB / 0.5184 GB, free: 35.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.234e-05/0.3246, allocations: 165.5 kB / 0.5186 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.3246, allocations: 4.312 kB / 0.5186 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.3246, allocations: 11.41 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.131e-05/0.3247, allocations: 36.86 kB / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.3247, allocations: 0 / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-06/0.3247, allocations: 0 / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.3247, allocations: 3.938 kB / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.52e-05/0.3247, allocations: 0 / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.802e-05/0.3248, allocations: 147.7 kB / 0.5188 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.871e-05/0.3249, allocations: 14.58 kB / 0.5188 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.2e-05/0.3249, allocations: 11.92 kB / 0.5188 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.3249, allocations: 4 kB / 0.5188 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.3249, allocations: 64.14 kB / 0.5188 GB, free: 34.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3249, allocations: 0 / 0.5188 GB, free: 34.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001441/0.3251, allocations: 63.61 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.3251, allocations: 77.11 kB / 0.519 GB, free: 34.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.248e-05/0.3251, allocations: 89.86 kB / 0.5191 GB, free: 34.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.834e-06/0.3252, allocations: 33.05 kB / 0.5191 GB, free: 34.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.156e-05/0.3252, allocations: 80.14 kB / 0.5192 GB, free: 34.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.3252, allocations: 7.281 kB / 0.5192 GB, free: 34.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-06/0.3252, allocations: 0 / 0.5192 GB, free: 34.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.398e-05/0.3253, allocations: 310.8 kB / 0.5195 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.444e-06/0.3253, allocations: 0 / 0.5195 GB, free: 34.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.057e-06/0.3253, allocations: 3.5 kB / 0.5195 GB, free: 34.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.992e-05/0.3253, allocations: 63.27 kB / 0.5195 GB, free: 34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.3253, allocations: 4.062 kB / 0.5195 GB, free: 34 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.934e-05/0.3254, allocations: 64.38 kB / 0.5196 GB, free: 33.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3254, allocations: 35.48 kB / 0.5196 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3254, allocations: 0 / 0.5196 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3254, allocations: 0 / 0.5196 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-06/0.3255, allocations: 3 kB / 0.5196 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.3255, allocations: 0 / 0.5196 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.569e-05/0.3255, allocations: 4 kB / 0.5196 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.3255, allocations: 0 / 0.5196 GB, free: 33.89 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.359e-05/0.3255, allocations: 145.7 kB / 0.5198 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-06/0.3256, allocations: 3.938 kB / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.308e-06/0.3256, allocations: 6.719 kB / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3256, allocations: 10.73 kB / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3256, allocations: 0 / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.3256, allocations: 0 / 0.5198 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.069e-05/0.3257, allocations: 145 kB / 0.5199 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3257, allocations: 6.812 kB / 0.5199 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3257, allocations: 0 / 0.5199 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3257, allocations: 3.938 kB / 0.52 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.3257, allocations: 4 kB / 0.52 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-07/0.3257, allocations: 0 / 0.52 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3257, allocations: 0 / 0.52 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.39e-05/0.3258, allocations: 89.91 kB / 0.52 GB, free: 33.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.773e-05/0.3258, allocations: 88.98 kB / 0.5201 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.3258, allocations: 2.906 kB / 0.5201 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.864e-06/0.3258, allocations: 0 / 0.5201 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.607e-05/0.3258, allocations: 7.5 kB / 0.5201 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.3258, allocations: 2.875 kB / 0.5201 GB, free: 33.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.432e-05/0.3259, allocations: 75.28 kB / 0.5202 GB, free: 33.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3259, allocations: 0 / 0.5202 GB, free: 33.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002398/0.3261, allocations: 41.22 kB / 0.5203 GB, free: 33.23 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004596/0.3266, allocations: 0.7018 MB / 0.5209 GB, free: 32.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.738e-05/0.3267, allocations: 60.83 kB / 0.521 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3267, allocations: 0 / 0.521 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.903e-05/0.3267, allocations: 54.44 kB / 0.521 GB, free: 32.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.3268, allocations: 9.359 kB / 0.5211 GB, free: 32.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000249/0.3271, allocations: 151.2 kB / 0.5212 GB, free: 32.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.3272, allocations: 0.6731 MB / 0.5219 GB, free: 31.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.105e-05/0.3272, allocations: 10.22 kB / 0.5219 GB, free: 31.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3272, allocations: 3.938 kB / 0.5219 GB, free: 31.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.395/2.722, allocations: 1.264 MB / 0.5231 GB, free: 31.44 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches