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.00177/0.00177, allocations: 117.8 kB / 18.5 MB, free: 4.434 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.002193/0.002193, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.503/1.503, allocations: 230.2 MB / 254.5 MB, free: 15.39 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.2755/0.2755, allocations: 46.91 MB / 357.4 MB, free: 10.48 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002146, allocations: 81.25 kB / 0.4912 GB, free: 26.86 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.114, allocations: 65.99 MB / 0.5557 GB, free: 9.105 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001543/0.1156, allocations: 493 kB / 0.5561 GB, free: 8.617 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.1178, allocations: 1.655 MB / 0.5578 GB, free: 6.945 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.257e-05/0.1178, allocations: 0 / 0.5578 GB, free: 6.945 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.133e-05/0.1178, allocations: 0 / 0.5578 GB, free: 6.945 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.1179, allocations: 0 / 0.5578 GB, free: 6.945 MB / 414.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.0006265/0.1185, allocations: 170.4 kB / 0.5579 GB, free: 6.781 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.166e-05/0.1185, allocations: 4 kB / 0.5579 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.15e-05/0.1186, allocations: 0 / 0.5579 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.689e-05/0.1186, allocations: 0 / 0.5579 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.031e-05/0.1186, allocations: 7.922 kB / 0.5579 GB, free: 6.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.1186, allocations: 0 / 0.5579 GB, free: 6.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003426/0.1189, allocations: 123.9 kB / 0.558 GB, free: 6.648 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.392e-06/0.119, allocations: 0 / 0.558 GB, free: 6.648 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.715e-05/0.119, allocations: 3.984 kB / 0.558 GB, free: 6.645 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.1191, allocations: 44.17 kB / 0.5581 GB, free: 6.602 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1191, allocations: 0 / 0.5581 GB, free: 6.602 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1191, allocations: 0 / 0.5581 GB, free: 6.602 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1191, allocations: 0 / 0.5581 GB, free: 6.602 MB / 414.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.0003643/0.1195, allocations: 348 kB / 0.5584 GB, free: 6.211 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1195, allocations: 12.03 kB / 0.5584 GB, free: 6.199 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.1195, allocations: 30.75 kB / 0.5585 GB, free: 6.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.348e-05/0.1196, allocations: 4.938 kB / 0.5585 GB, free: 6.156 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.1197, allocations: 164.3 kB / 0.5586 GB, free: 5.957 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.1197, allocations: 384 / 0.5586 GB, free: 5.957 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-06/0.1197, allocations: 4.312 kB / 0.5586 GB, free: 5.953 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.639e-05/0.1198, allocations: 37.83 kB / 0.5587 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1198, allocations: 0 / 0.5587 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-06/0.1198, allocations: 0 / 0.5587 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1198, allocations: 0 / 0.5587 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.812e-05/0.1198, allocations: 11.92 kB / 0.5587 GB, free: 5.898 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.12, allocations: 145.7 kB / 0.5588 GB, free: 5.707 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.731e-05/0.12, allocations: 22.5 kB / 0.5588 GB, free: 5.676 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.587e-05/0.12, allocations: 4.859 kB / 0.5588 GB, free: 5.668 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.12, allocations: 0 / 0.5588 GB, free: 5.668 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.485e-05/0.1201, allocations: 68.27 kB / 0.5589 GB, free: 5.586 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.1201, allocations: 4 kB / 0.5589 GB, free: 5.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001636/0.1203, allocations: 63.39 kB / 0.559 GB, free: 5.508 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/0.1203, allocations: 77.11 kB / 0.559 GB, free: 5.414 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.927e-05/0.1204, allocations: 93.81 kB / 0.5591 GB, free: 5.312 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.1204, allocations: 29.64 kB / 0.5592 GB, free: 5.277 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.52e-05/0.1204, allocations: 80.14 kB / 0.5592 GB, free: 5.195 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.1205, allocations: 8 kB / 0.5592 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.707e-05/0.1205, allocations: 13.72 kB / 0.5593 GB, free: 5.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1206, allocations: 319 kB / 0.5596 GB, free: 4.848 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.418e-06/0.1206, allocations: 0 / 0.5596 GB, free: 4.848 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.025e-06/0.1206, allocations: 4 kB / 0.5596 GB, free: 4.844 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.355e-05/0.1207, allocations: 56.27 kB / 0.5596 GB, free: 4.773 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1207, allocations: 0 / 0.5596 GB, free: 4.773 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.801e-05/0.1208, allocations: 63.41 kB / 0.5597 GB, free: 4.699 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.1208, allocations: 41.62 kB / 0.5597 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.1208, allocations: 0 / 0.5597 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1208, allocations: 4.094 kB / 0.5597 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.775e-06/0.1208, allocations: 3.938 kB / 0.5597 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.1208, allocations: 3.984 kB / 0.5597 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.1209, allocations: 0 / 0.5597 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.1209, allocations: 0 / 0.5597 GB, free: 4.641 MB / 414.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.45e-05/0.121, allocations: 135.5 kB / 0.5599 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.121, allocations: 3.938 kB / 0.5599 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.412e-06/0.121, allocations: 3.125 kB / 0.5599 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.121, allocations: 0 / 0.5599 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.121, allocations: 15.92 kB / 0.5599 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.121, allocations: 0 / 0.5599 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.1211, allocations: 145.7 kB / 0.56 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1211, allocations: 4 kB / 0.56 GB, free: 4.277 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1211, allocations: 0 / 0.56 GB, free: 4.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1211, allocations: 3.938 kB / 0.56 GB, free: 4.273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.1211, allocations: 4 kB / 0.56 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1211, allocations: 0 / 0.56 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1211, allocations: 0 / 0.56 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.1212, allocations: 90.83 kB / 0.5601 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.633e-05/0.1213, allocations: 85.05 kB / 0.5602 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.1213, allocations: 7.875 kB / 0.5602 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.1213, allocations: 3.984 kB / 0.5602 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.486e-05/0.1213, allocations: 0 / 0.5602 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.1213, allocations: 0 / 0.5602 GB, free: 4.043 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.966e-05/0.1213, allocations: 79.28 kB / 0.5603 GB, free: 3.965 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1213, allocations: 0 / 0.5603 GB, free: 3.965 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002053/0.1216, allocations: 15.94 kB / 0.5603 GB, free: 3.949 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.0006545/0.1222, allocations: 0.6698 MB / 0.561 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.1223, allocations: 59.34 kB / 0.561 GB, free: 3.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1223, allocations: 4.094 kB / 0.561 GB, free: 3.172 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.754e-05/0.1224, allocations: 55.41 kB / 0.5611 GB, free: 3.105 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.1225, allocations: 3.938 kB / 0.5611 GB, free: 3.102 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003076/0.1228, allocations: 126.6 kB / 0.5612 GB, free: 2.938 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.1231, allocations: 0.669 MB / 0.5619 GB, free: 2.242 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.1231, allocations: 0 / 0.5619 GB, free: 2.242 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.325e-05/0.1231, allocations: 11.38 kB / 0.5619 GB, free: 2.23 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1231, allocations: 0 / 0.5619 GB, free: 2.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.1441, allocations: 1.485 MB / 0.5633 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/7.946, allocations: 3.984 kB / 0.5633 GB, free: 0.8125 MB / 414.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.001648359000683]