Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2349/0.2349, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 59.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4187, allocations: 60.83 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001496/0.4203, allocations: 0.4893 MB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.422, allocations: 1.386 MB / 0.5202 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.659e-05/0.422, allocations: 0 / 0.5202 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.93e-05/0.4221, allocations: 4 kB / 0.5203 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.801e-06/0.4221, allocations: 1.156 kB / 0.5203 GB, free: 1.965 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0005127/0.4226, allocations: 101.5 kB / 0.5203 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.839e-05/0.4227, allocations: 6.375 kB / 0.5204 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.4227, allocations: 1.781 kB / 0.5204 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.612e-05/0.4227, allocations: 0 / 0.5204 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.545e-05/0.4228, allocations: 9.641 kB / 0.5204 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.946e-06/0.4228, allocations: 0 / 0.5204 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003206/0.4231, allocations: 66.25 kB / 0.5204 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-06/0.4231, allocations: 5.172 kB / 0.5204 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.4231, allocations: 1.156 kB / 0.5204 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.4232, allocations: 23.94 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4233, allocations: 0 / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4233, allocations: 1.375 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.4233, allocations: 0 / 0.5205 GB, free: 1.863 MB / 382.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.0003138/0.4236, allocations: 343.3 kB / 0.5208 GB, free: 1.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.4237, allocations: 10.06 kB / 0.5208 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.625e-05/0.4237, allocations: 31.55 kB / 0.5208 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.4237, allocations: 6.094 kB / 0.5208 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.751e-05/0.4238, allocations: 161 kB / 0.521 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.4238, allocations: 2.484 kB / 0.521 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.4239, allocations: 1.5 kB / 0.521 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.92e-05/0.424, allocations: 32.66 kB / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.424, allocations: 4.688 kB / 0.521 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.424, allocations: 0 / 0.521 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.424, allocations: 1.062 kB / 0.521 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.02e-05/0.424, allocations: 1.125 kB / 0.521 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001139/0.4241, allocations: 152.8 kB / 0.5212 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.89e-05/0.4242, allocations: 17.5 kB / 0.5212 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.59e-05/0.4242, allocations: 9.984 kB / 0.5212 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.4242, allocations: 0 / 0.5212 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/0.4243, allocations: 62.73 kB / 0.5213 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.104e-06/0.4243, allocations: 0 / 0.5213 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001886/0.4245, allocations: 73.48 kB / 0.5213 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.4245, allocations: 82.98 kB / 0.5214 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.194e-05/0.4246, allocations: 89.86 kB / 0.5215 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.4246, allocations: 25.7 kB / 0.5215 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.76e-05/0.4246, allocations: 82.06 kB / 0.5216 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.4246, allocations: 2.672 kB / 0.5216 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.4247, allocations: 12.55 kB / 0.5216 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.382e-05/0.4247, allocations: 312.7 kB / 0.5219 GB, free: 196 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.304e-05/0.4247, allocations: 9.312 kB / 0.5219 GB, free: 188 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.4247, allocations: 1.938 kB / 0.5219 GB, free: 188 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.716e-05/0.4248, allocations: 63.27 kB / 0.522 GB, free: 112 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4248, allocations: 1.094 kB / 0.522 GB, free: 112 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.508e-05/0.4249, allocations: 60.08 kB / 0.522 GB, free: 48 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.4249, allocations: 35.41 kB / 0.5221 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.4249, allocations: 0.9688 kB / 0.5221 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.4249, allocations: 0 / 0.5221 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.904e-06/0.4249, allocations: 0.7031 kB / 0.5221 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4249, allocations: 5.219 kB / 0.5221 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.721e-05/0.425, allocations: 0 / 0.5221 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.425, allocations: 1.594 kB / 0.5221 GB, free: 8 kB / 382.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.0001539/0.4251, allocations: 140 kB / 0.5222 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.4252, allocations: 7.891 kB / 0.5222 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.797e-05/0.4252, allocations: 13 kB / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.4252, allocations: 0 / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4252, allocations: 1.312 kB / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.4252, allocations: 0.6094 kB / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000146/0.4254, allocations: 148.9 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.4254, allocations: 4 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.4254, allocations: 1.156 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.4254, allocations: 4.641 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.4254, allocations: 5.031 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.4254, allocations: 0 / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4254, allocations: 6 kB / 0.5224 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.4255, allocations: 92.55 kB / 0.5225 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.4256, allocations: 81.75 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.4256, allocations: 1.156 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.4256, allocations: 1.781 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.4256, allocations: 0 / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.4256, allocations: 2.047 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.783e-05/0.4257, allocations: 75.28 kB / 0.5226 GB, free: 15.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4257, allocations: 0 / 0.5226 GB, free: 15.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002017/0.4259, allocations: 9.875 kB / 0.5226 GB, free: 15.36 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.0006282/0.4265, allocations: 0.6714 MB / 0.5233 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001092/0.4267, allocations: 62.2 kB / 0.5234 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4267, allocations: 0 / 0.5234 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.955e-05/0.4267, allocations: 59.45 kB / 0.5234 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.4269, allocations: 5.609 kB / 0.5234 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002728/0.4271, allocations: 103.8 kB / 0.5235 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.4275, allocations: 0.6787 MB / 0.5242 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.4275, allocations: 0.8438 kB / 0.5242 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.679e-05/0.4275, allocations: 8.25 kB / 0.5242 GB, free: 13.73 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4275, allocations: 0 / 0.5242 GB, free: 13.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02354/0.4511, allocations: 1.32 MB / 0.5255 GB, free: 13.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/8.493, allocations: 18.58 kB / 0.5255 GB, free: 13.3 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches