Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.001638/0.001638, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.002017/0.002017, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.553/1.553, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2284/0.2284, allocations: 44.91 MB / 358.8 MB, free: 6.301 MB / 286.1 MB " [Timeout remaining time 180] 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.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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 63.91 kB / 0.493 GB, free: 10.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3089, allocations: 65.48 MB / 0.557 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001571/0.3105, allocations: 480.4 kB / 0.5574 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003665/0.3142, allocations: 2.452 MB / 0.5598 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.273e-05/0.3142, allocations: 0 / 0.5598 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.528e-06/0.3142, allocations: 0 / 0.5598 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.279e-06/0.3142, allocations: 0 / 0.5598 GB, free: 4.883 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002831/0.317, allocations: 1.171 MB / 0.561 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.391e-05/0.3171, allocations: 0 / 0.561 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.575e-05/0.3171, allocations: 4 kB / 0.561 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.319e-05/0.3171, allocations: 0 / 0.561 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.832e-05/0.3172, allocations: 0 / 0.561 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-06/0.3172, allocations: 0 / 0.561 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.3188, allocations: 1.03 MB / 0.562 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.683e-06/0.3188, allocations: 0 / 0.562 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.344e-05/0.3189, allocations: 3.984 kB / 0.562 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006333/0.3195, allocations: 456.9 kB / 0.5624 GB, free: 2.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3195, allocations: 4 kB / 0.5624 GB, free: 2.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3195, allocations: 0 / 0.5624 GB, free: 2.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.3195, allocations: 0 / 0.5624 GB, free: 2.223 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.0004554/0.32, allocations: 367.2 kB / 0.5628 GB, free: 1.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.32, allocations: 8.031 kB / 0.5628 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.579e-05/0.32, allocations: 30.75 kB / 0.5628 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.142e-05/0.3201, allocations: 4.875 kB / 0.5628 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.52e-05/0.3201, allocations: 106.5 kB / 0.5629 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.3201, allocations: 4.375 kB / 0.5629 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.982e-06/0.3202, allocations: 4.375 kB / 0.5629 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.241e-05/0.3202, allocations: 41.73 kB / 0.563 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.3202, allocations: 4 kB / 0.563 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-06/0.3202, allocations: 0 / 0.563 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3203, allocations: 0 / 0.563 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.479e-05/0.3203, allocations: 0 / 0.563 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.3204, allocations: 116.8 kB / 0.5631 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.159e-05/0.3204, allocations: 18.58 kB / 0.5631 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.463e-05/0.3205, allocations: 8.859 kB / 0.5631 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.803e-06/0.3205, allocations: 0 / 0.5631 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/0.3205, allocations: 72.19 kB / 0.5632 GB, free: 1.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3205, allocations: 0 / 0.5632 GB, free: 1.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001553/0.3207, allocations: 59.41 kB / 0.5632 GB, free: 1.238 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.3207, allocations: 77.11 kB / 0.5633 GB, free: 1.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.864e-05/0.3208, allocations: 97.81 kB / 0.5634 GB, free: 1.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.3208, allocations: 29.83 kB / 0.5634 GB, free: 1.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.733e-05/0.3208, allocations: 80.14 kB / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.3208, allocations: 0 / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.038e-05/0.3209, allocations: 21.64 kB / 0.5635 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.321, allocations: 310.8 kB / 0.5638 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.486e-06/0.321, allocations: 0 / 0.5638 GB, free: 0.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.496e-06/0.321, allocations: 7.938 kB / 0.5638 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.61e-05/0.3211, allocations: 64.33 kB / 0.5639 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3211, allocations: 0 / 0.5639 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.954e-05/0.3212, allocations: 67.39 kB / 0.564 GB, free: 428 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.3212, allocations: 37.64 kB / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3212, allocations: 0 / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.3212, allocations: 0 / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.3212, allocations: 0 / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3212, allocations: 0 / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.305e-05/0.3212, allocations: 0 / 0.564 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.3212, allocations: 0 / 0.564 GB, free: 384 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.614e-05/0.3213, allocations: 143.5 kB / 0.5641 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.3213, allocations: 11.86 kB / 0.5642 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.3213, allocations: 3 kB / 0.5642 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3213, allocations: 0 / 0.5642 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.3213, allocations: 7.938 kB / 0.5642 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.3214, allocations: 0 / 0.5642 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.709e-05/0.3214, allocations: 116.8 kB / 0.5643 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3214, allocations: 0 / 0.5643 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3214, allocations: 0 / 0.5643 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.3214, allocations: 3.938 kB / 0.5643 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3215, allocations: 11.98 kB / 0.5643 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3215, allocations: 0 / 0.5643 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3215, allocations: 0 / 0.5643 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.3216, allocations: 90.83 kB / 0.5644 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-06/0.3216, allocations: 7.922 kB / 0.5644 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.3216, allocations: 0 / 0.5644 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-06/0.3216, allocations: 0 / 0.5644 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.3216, allocations: 4.031 kB / 0.5644 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.3216, allocations: 4 kB / 0.5644 GB, free: 15.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.311e-05/0.3216, allocations: 75.28 kB / 0.5645 GB, free: 15.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3216, allocations: 0 / 0.5645 GB, free: 15.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004461/0.3221, allocations: 155.5 kB / 0.5646 GB, free: 15.67 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.001031/0.3231, allocations: 0.9182 MB / 0.5655 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.793e-05/0.3232, allocations: 59.41 kB / 0.5656 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3232, allocations: 4.062 kB / 0.5656 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.036e-05/0.3233, allocations: 55.41 kB / 0.5656 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.3234, allocations: 3.938 kB / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004008/0.3238, allocations: 186.2 kB / 0.5658 GB, free: 14.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.3241, allocations: 0.669 MB / 0.5665 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.17e-06/0.3241, allocations: 0 / 0.5665 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.554e-05/0.3241, allocations: 11.44 kB / 0.5665 GB, free: 13.64 MB / 414.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3241, allocations: 3.938 kB / 0.5665 GB, free: 13.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03371/0.3578, allocations: 5.781 MB / 0.5721 GB, free: 7.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.62, allocations: 13.55 kB / 0.5721 GB, free: 7.98 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.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: 14.64927002400509]