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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001524/0.001524, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001729/0.001729, allocations: 221 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 46.93 MB / 361.6 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002171/0.002171, allocations: 79.88 kB / 0.497 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2917, allocations: 66.08 MB / 0.5615 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001587/0.2933, allocations: 495.5 kB / 0.562 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.2956, allocations: 1.664 MB / 0.5636 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.195e-05/0.2956, allocations: 4 kB / 0.5636 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.2956, allocations: 4 kB / 0.5636 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.922e-06/0.2956, allocations: 0 / 0.5636 GB, free: 2.117 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.0005921/0.2962, allocations: 159.4 kB / 0.5637 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.108e-05/0.2963, allocations: 7.922 kB / 0.5638 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.2963, allocations: 4 kB / 0.5638 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.26e-05/0.2963, allocations: 4 kB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.858e-05/0.2963, allocations: 0 / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.503e-06/0.2964, allocations: 0 / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003761/0.2967, allocations: 127.8 kB / 0.5639 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.083e-06/0.2967, allocations: 0 / 0.5639 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.2968, allocations: 0 / 0.5639 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.2969, allocations: 33.78 kB / 0.5639 GB, free: 1.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2969, allocations: 0 / 0.5639 GB, free: 1.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2969, allocations: 4 kB / 0.5639 GB, free: 1.785 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.2969, allocations: 4 kB / 0.5639 GB, free: 1.781 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.000287/0.2972, allocations: 276 kB / 0.5642 GB, free: 1.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2972, allocations: 11.97 kB / 0.5642 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.275e-05/0.2972, allocations: 4.172 kB / 0.5642 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.374e-05/0.2972, allocations: 30.75 kB / 0.5642 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.767e-05/0.2973, allocations: 4.938 kB / 0.5642 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.2974, allocations: 102.5 kB / 0.5643 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.2974, allocations: 384 / 0.5643 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.2974, allocations: 4.375 kB / 0.5643 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.088e-05/0.2975, allocations: 37.64 kB / 0.5644 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.2975, allocations: 3.938 kB / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.2975, allocations: 0 / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2975, allocations: 0 / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.464e-05/0.2975, allocations: 7.984 kB / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001252/0.2976, allocations: 112.8 kB / 0.5645 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.205e-05/0.2977, allocations: 14.58 kB / 0.5645 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.711e-05/0.2977, allocations: 16.94 kB / 0.5645 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.2977, allocations: 3.938 kB / 0.5645 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.2978, allocations: 60.27 kB / 0.5646 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.2978, allocations: 0 / 0.5646 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001646/0.2979, allocations: 71.27 kB / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.298, allocations: 77.11 kB / 0.5647 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.504e-05/0.298, allocations: 93.81 kB / 0.5648 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.298, allocations: 29.83 kB / 0.5648 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.352e-05/0.2981, allocations: 84.14 kB / 0.5649 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.327e-05/0.2981, allocations: 0 / 0.5649 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.2981, allocations: 13.72 kB / 0.5649 GB, free: 0.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.2982, allocations: 318.8 kB / 0.5652 GB, free: 228 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-06/0.2982, allocations: 4 kB / 0.5652 GB, free: 224 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.549e-06/0.2982, allocations: 0 / 0.5652 GB, free: 224 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.576e-05/0.2983, allocations: 64.2 kB / 0.5653 GB, free: 144 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2983, allocations: 4.062 kB / 0.5653 GB, free: 140 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.95e-05/0.2984, allocations: 67.34 kB / 0.5654 GB, free: 60 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.2984, allocations: 35.88 kB / 0.5654 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.2984, allocations: 0 / 0.5654 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.2984, allocations: 0 / 0.5654 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.2984, allocations: 0 / 0.5654 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.2984, allocations: 0 / 0.5654 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.813e-05/0.2984, allocations: 11.94 kB / 0.5654 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.2984, allocations: 0 / 0.5654 GB, free: 8 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 0.0001057/0.2986, allocations: 136.9 kB / 0.5655 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/0.2986, allocations: 7.938 kB / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.055e-05/0.2986, allocations: 3 kB / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.2986, allocations: 0 / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.2986, allocations: 3.984 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.2986, allocations: 0 / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.114e-05/0.2987, allocations: 120.8 kB / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2987, allocations: 0 / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.616e-06/0.2987, allocations: 3.938 kB / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.2987, allocations: 0 / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.2987, allocations: 7.984 kB / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.2987, allocations: 3.938 kB / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.2987, allocations: 0 / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.362e-05/0.2988, allocations: 90.83 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.7e-06/0.2988, allocations: 3.938 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.2988, allocations: 4 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-06/0.2988, allocations: 0 / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.63e-05/0.2988, allocations: 8.016 kB / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.2988, allocations: 0 / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.257e-05/0.2989, allocations: 75.28 kB / 0.5659 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2989, allocations: 0 / 0.5659 GB, free: 15.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0001989/0.2991, allocations: 19.94 kB / 0.5659 GB, free: 15.45 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.0005431/0.2996, allocations: 0.6702 MB / 0.5665 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.283e-05/0.2997, allocations: 55.41 kB / 0.5666 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2997, allocations: 0 / 0.5666 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.4e-05/0.2997, allocations: 55.41 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001122/0.2998, allocations: 4 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002751/0.3001, allocations: 122.8 kB / 0.5668 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.3004, allocations: 0.6767 MB / 0.5674 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.398e-06/0.3004, allocations: 4 kB / 0.5674 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.479e-05/0.3004, allocations: 7.438 kB / 0.5674 GB, free: 13.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3004, allocations: 0 / 0.5674 GB, free: 13.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.3193, allocations: 1.63 MB / 0.569 GB, free: 12.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.67, allocations: 7.625 kB / 0.569 GB, free: 12.21 MB / 414.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.335990389983635]