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.001357/0.001357, allocations: 104.2 kB / 20.48 MB, free: 1.125 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.001524/0.001524, allocations: 214.2 kB / 23.77 MB, free: 4.332 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.481/1.481, allocations: 230.5 MB / 257.4 MB, free: 7.727 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.25/0.25, allocations: 46.95 MB / 360.8 MB, free: 3.891 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.002368/0.002368, allocations: 87.84 kB / 0.4962 GB, free: 7.527 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3558, allocations: 66.07 MB / 0.5607 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001683/0.3574, allocations: 473.1 kB / 0.5612 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003786/0.3612, allocations: 2.287 MB / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.305e-05/0.3613, allocations: 0 / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.073e-05/0.3613, allocations: 7.938 kB / 0.5634 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.103e-06/0.3613, allocations: 0 / 0.5634 GB, free: 1.242 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.003063/0.3643, allocations: 1.105 MB / 0.5645 GB, free: 140 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.192e-05/0.3644, allocations: 0 / 0.5645 GB, free: 140 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.263e-05/0.3644, allocations: 7.984 kB / 0.5645 GB, free: 132 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.051e-05/0.3644, allocations: 0 / 0.5645 GB, free: 132 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.025e-05/0.3645, allocations: 7.984 kB / 0.5645 GB, free: 124 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-06/0.3645, allocations: 3.938 kB / 0.5645 GB, free: 120 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001724/0.3662, allocations: 0.9755 MB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.3662, allocations: 0 / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.821e-05/0.3662, allocations: 4 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006733/0.3669, allocations: 433 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3669, allocations: 0 / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3669, allocations: 0 / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3669, allocations: 0 / 0.5659 GB, free: 14.71 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.0004955/0.3674, allocations: 371.2 kB / 0.5662 GB, free: 14.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3675, allocations: 12.03 kB / 0.5662 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.628e-05/0.3675, allocations: 30.75 kB / 0.5663 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.3675, allocations: 4.922 kB / 0.5663 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.315e-05/0.3676, allocations: 106.5 kB / 0.5664 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.3676, allocations: 384 / 0.5664 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.649e-06/0.3677, allocations: 4.375 kB / 0.5664 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.3678, allocations: 59.47 kB / 0.5664 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.3678, allocations: 0 / 0.5664 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.3678, allocations: 4 kB / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3678, allocations: 0 / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.265e-05/0.3678, allocations: 33.7 kB / 0.5665 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.368, allocations: 120.8 kB / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.574e-05/0.368, allocations: 44.22 kB / 0.5666 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.381e-05/0.3681, allocations: 34.66 kB / 0.5667 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.046e-06/0.3681, allocations: 3.938 kB / 0.5667 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.3681, allocations: 64.2 kB / 0.5667 GB, free: 13.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3681, allocations: 0 / 0.5667 GB, free: 13.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002093/0.3684, allocations: 114.8 kB / 0.5668 GB, free: 13.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.3684, allocations: 77.11 kB / 0.5669 GB, free: 13.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.723e-05/0.3685, allocations: 105.9 kB / 0.567 GB, free: 13.33 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.3685, allocations: 25.7 kB / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.756e-05/0.3685, allocations: 84.08 kB / 0.5671 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.3686, allocations: 0 / 0.5671 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.3686, allocations: 13.72 kB / 0.5671 GB, free: 13.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3687, allocations: 314.8 kB / 0.5674 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.653e-05/0.3688, allocations: 25.7 kB / 0.5675 GB, free: 12.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.921e-05/0.3688, allocations: 29.7 kB / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.147e-05/0.3689, allocations: 64.27 kB / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3689, allocations: 4 kB / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.733e-05/0.369, allocations: 89.16 kB / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.369, allocations: 37.64 kB / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.369, allocations: 0 / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.369, allocations: 0 / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.369, allocations: 0 / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.369, allocations: 3.938 kB / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.496e-05/0.369, allocations: 0 / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.369, allocations: 4 kB / 0.5677 GB, free: 12.57 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 0.000106/0.3692, allocations: 143.5 kB / 0.5678 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.3692, allocations: 3.938 kB / 0.5678 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.078e-05/0.3692, allocations: 11.03 kB / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3692, allocations: 0 / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3692, allocations: 0 / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3692, allocations: 0 / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001225/0.3693, allocations: 112.8 kB / 0.5679 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3693, allocations: 4 kB / 0.5679 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3693, allocations: 0 / 0.5679 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3693, allocations: 3.938 kB / 0.5679 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.3693, allocations: 3.984 kB / 0.5679 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.3693, allocations: 3.938 kB / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3693, allocations: 0 / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001304/0.3695, allocations: 120.5 kB / 0.5681 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.627e-06/0.3695, allocations: 7.922 kB / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.3695, allocations: 4 kB / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.3695, allocations: 3.938 kB / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.033e-05/0.3695, allocations: 0 / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.3695, allocations: 4 kB / 0.5681 GB, free: 12.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.637e-05/0.3695, allocations: 75.28 kB / 0.5682 GB, free: 11.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3695, allocations: 4 kB / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004836/0.37, allocations: 155.5 kB / 0.5683 GB, free: 11.83 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.001186/0.3712, allocations: 0.9388 MB / 0.5692 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.3714, allocations: 114.8 kB / 0.5693 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3714, allocations: 0 / 0.5693 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.713e-05/0.3714, allocations: 85.09 kB / 0.5694 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.3716, allocations: 4 kB / 0.5694 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004439/0.372, allocations: 211.9 kB / 0.5696 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.968e-05/0.372, allocations: 55.36 kB / 0.5697 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.34e-06/0.3721, allocations: 0 / 0.5697 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.884e-05/0.3721, allocations: 11.44 kB / 0.5697 GB, free: 10.27 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3721, allocations: 0 / 0.5697 GB, free: 10.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03646/0.4085, allocations: 6.277 MB / 0.5758 GB, free: 4.086 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.95, allocations: 7.609 kB / 0.5758 GB, free: 4.082 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.955863091978244]