Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.001683/0.001683, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002374/0.002374, allocations: 211.9 kB / 23.73 MB, free: 4.164 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.46/1.46, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.2474/0.2474, allocations: 46.96 MB / 360.8 MB, free: 3.953 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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002678/0.002678, allocations: 79.88 kB / 0.4961 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3309, allocations: 66.08 MB / 0.5607 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001623/0.3325, allocations: 485 kB / 0.5611 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003759/0.3362, allocations: 2.287 MB / 0.5634 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.27e-05/0.3363, allocations: 0 / 0.5634 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.428e-06/0.3363, allocations: 0 / 0.5634 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.3363, allocations: 0 / 0.5634 GB, free: 1.297 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.002909/0.3392, allocations: 1.109 MB / 0.5644 GB, free: 192 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.294e-05/0.3392, allocations: 0 / 0.5644 GB, free: 192 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.3393, allocations: 0 / 0.5644 GB, free: 192 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.858e-05/0.3393, allocations: 4 kB / 0.5644 GB, free: 188 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.742e-05/0.3393, allocations: 7.984 kB / 0.5644 GB, free: 180 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.3393, allocations: 0 / 0.5644 GB, free: 180 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001698/0.341, allocations: 0.9678 MB / 0.5654 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.172e-05/0.341, allocations: 4 kB / 0.5654 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.3411, allocations: 4 kB / 0.5654 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006641/0.3417, allocations: 448.8 kB / 0.5658 GB, free: 14.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3417, allocations: 0 / 0.5658 GB, free: 14.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3417, allocations: 0 / 0.5658 GB, free: 14.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3417, allocations: 0 / 0.5658 GB, free: 14.76 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.0004828/0.3422, allocations: 367.2 kB / 0.5662 GB, free: 14.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3423, allocations: 8.031 kB / 0.5662 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.919e-05/0.3423, allocations: 30.75 kB / 0.5662 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.454e-05/0.3423, allocations: 0.9375 kB / 0.5662 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.16e-05/0.3424, allocations: 106.5 kB / 0.5663 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.3424, allocations: 4.375 kB / 0.5663 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.3424, allocations: 384 / 0.5663 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.3426, allocations: 63.47 kB / 0.5664 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3426, allocations: 3.984 kB / 0.5664 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.3426, allocations: 0 / 0.5664 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3426, allocations: 0 / 0.5664 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.434e-05/0.3426, allocations: 33.64 kB / 0.5664 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001343/0.3427, allocations: 116.8 kB / 0.5665 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.172e-05/0.3428, allocations: 44.31 kB / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.164e-05/0.3428, allocations: 30.56 kB / 0.5666 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.3429, allocations: 4 kB / 0.5666 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.209e-05/0.3429, allocations: 72.19 kB / 0.5667 GB, free: 13.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3429, allocations: 0 / 0.5667 GB, free: 13.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002096/0.3431, allocations: 114.8 kB / 0.5668 GB, free: 13.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.3432, allocations: 77.11 kB / 0.5669 GB, free: 13.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.341e-05/0.3433, allocations: 97.8 kB / 0.567 GB, free: 13.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.3433, allocations: 25.7 kB / 0.567 GB, free: 13.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.985e-05/0.3433, allocations: 84.12 kB / 0.5671 GB, free: 13.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.3433, allocations: 4 kB / 0.5671 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.3434, allocations: 13.72 kB / 0.5671 GB, free: 13.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3435, allocations: 311 kB / 0.5674 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.655e-05/0.3436, allocations: 37.7 kB / 0.5674 GB, free: 12.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.076e-05/0.3436, allocations: 29.64 kB / 0.5674 GB, free: 12.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.832e-05/0.3436, allocations: 68.19 kB / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3436, allocations: 0 / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.024e-05/0.3437, allocations: 89.11 kB / 0.5676 GB, free: 12.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.3438, allocations: 33.64 kB / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.3438, allocations: 0 / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.3438, allocations: 0 / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3438, allocations: 4 kB / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.3438, allocations: 4.094 kB / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.701e-05/0.3438, allocations: 3.984 kB / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.3438, allocations: 0 / 0.5676 GB, free: 12.62 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.711e-05/0.3439, allocations: 135.5 kB / 0.5678 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.3439, allocations: 7.922 kB / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.068e-05/0.3439, allocations: 3 kB / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3439, allocations: 0 / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.344, allocations: 0 / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.344, allocations: 0 / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.3441, allocations: 124.8 kB / 0.5679 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3441, allocations: 7.938 kB / 0.5679 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.3441, allocations: 0 / 0.5679 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3441, allocations: 3.938 kB / 0.5679 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.3441, allocations: 0 / 0.5679 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.3441, allocations: 4 kB / 0.5679 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3441, allocations: 0 / 0.5679 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.3442, allocations: 116.5 kB / 0.568 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-06/0.3442, allocations: 3.938 kB / 0.568 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.3442, allocations: 3.938 kB / 0.568 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.3442, allocations: 0 / 0.568 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.3442, allocations: 8.031 kB / 0.568 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.3442, allocations: 0 / 0.568 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.422e-05/0.3443, allocations: 75.28 kB / 0.5681 GB, free: 12.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3443, allocations: 0 / 0.5681 GB, free: 12.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004431/0.3447, allocations: 159.5 kB / 0.5683 GB, free: 11.89 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.001098/0.3458, allocations: 0.9386 MB / 0.5692 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001392/0.346, allocations: 118.8 kB / 0.5693 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.346, allocations: 0 / 0.5693 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.523e-05/0.346, allocations: 81.11 kB / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.3461, allocations: 2.188 kB / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004402/0.3466, allocations: 220 kB / 0.5696 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.241e-05/0.3466, allocations: 59.36 kB / 0.5696 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.002e-06/0.3466, allocations: 0 / 0.5696 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.543e-05/0.3467, allocations: 7.438 kB / 0.5696 GB, free: 10.32 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3467, allocations: 0 / 0.5696 GB, free: 10.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.3798, allocations: 6.186 MB / 0.5757 GB, free: 4.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.99, allocations: 7.031 kB / 0.5757 GB, free: 4.223 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.966727844905108]