Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001836/0.001836, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002284/0.002284, allocations: 202.1 kB / 23.73 MB, free: 4.379 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.522/1.522, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2283/0.2283, allocations: 46.96 MB / 360.9 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 63.89 kB / 0.4961 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.34, allocations: 66.04 MB / 0.5606 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001675/0.3417, allocations: 477 kB / 0.561 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003641/0.3453, allocations: 2.287 MB / 0.5633 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.346e-05/0.3454, allocations: 0 / 0.5633 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.898e-06/0.3454, allocations: 0 / 0.5633 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.15e-06/0.3454, allocations: 0 / 0.5633 GB, free: 1.445 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.002994/0.3484, allocations: 1.109 MB / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.298e-05/0.3484, allocations: 7.984 kB / 0.5643 GB, free: 336 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.461e-05/0.3485, allocations: 4 kB / 0.5643 GB, free: 332 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.434e-05/0.3485, allocations: 0 / 0.5643 GB, free: 332 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.536e-05/0.3485, allocations: 3.984 kB / 0.5643 GB, free: 328 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.141e-06/0.3485, allocations: 0 / 0.5643 GB, free: 328 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001763/0.3503, allocations: 0.999 MB / 0.5653 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.054e-05/0.3503, allocations: 7.984 kB / 0.5653 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.383e-05/0.3503, allocations: 7.938 kB / 0.5653 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006232/0.3509, allocations: 437 kB / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3509, allocations: 0 / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3509, allocations: 0 / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.3509, allocations: 0 / 0.5658 GB, free: 14.88 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.0004885/0.3514, allocations: 367.2 kB / 0.5661 GB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3515, allocations: 12.03 kB / 0.5661 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.3515, allocations: 30.75 kB / 0.5661 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.3515, allocations: 0.9375 kB / 0.5661 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.693e-05/0.3516, allocations: 106.5 kB / 0.5662 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.3517, allocations: 8.312 kB / 0.5663 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.3517, allocations: 4.375 kB / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.3518, allocations: 59.52 kB / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.3518, allocations: 0 / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.3518, allocations: 0 / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3518, allocations: 4 kB / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.024e-05/0.3518, allocations: 29.7 kB / 0.5664 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001672/0.352, allocations: 116.8 kB / 0.5665 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.038e-05/0.3521, allocations: 52.2 kB / 0.5665 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.3521, allocations: 30.62 kB / 0.5665 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.3521, allocations: 8 kB / 0.5665 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.534e-05/0.3522, allocations: 60.2 kB / 0.5666 GB, free: 13.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.353e-06/0.3522, allocations: 0 / 0.5666 GB, free: 13.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000265/0.3525, allocations: 118.8 kB / 0.5667 GB, free: 13.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.208e-05/0.3526, allocations: 81.05 kB / 0.5668 GB, free: 13.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.82e-05/0.3526, allocations: 101.8 kB / 0.5669 GB, free: 13.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.3527, allocations: 25.7 kB / 0.5669 GB, free: 13.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.183e-05/0.3527, allocations: 80.14 kB / 0.567 GB, free: 13.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.899e-05/0.3527, allocations: 0 / 0.567 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.3528, allocations: 13.72 kB / 0.567 GB, free: 13.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.353, allocations: 315 kB / 0.5673 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.586e-05/0.353, allocations: 37.62 kB / 0.5673 GB, free: 13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.806e-05/0.353, allocations: 29.7 kB / 0.5674 GB, free: 12.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.49e-05/0.3531, allocations: 56.27 kB / 0.5674 GB, free: 12.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3531, allocations: 0 / 0.5674 GB, free: 12.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.657e-05/0.3532, allocations: 89.11 kB / 0.5675 GB, free: 12.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.065e-05/0.3533, allocations: 41.62 kB / 0.5676 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3533, allocations: 0 / 0.5676 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.3533, allocations: 3.984 kB / 0.5676 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.263e-06/0.3533, allocations: 4.094 kB / 0.5676 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.3533, allocations: 0 / 0.5676 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.3533, allocations: 0 / 0.5676 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.3533, allocations: 4 kB / 0.5676 GB, free: 12.73 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.0001155/0.3535, allocations: 135.5 kB / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.007e-05/0.3535, allocations: 3.938 kB / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.514e-05/0.3535, allocations: 7 kB / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3535, allocations: 3.984 kB / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3535, allocations: 0 / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3535, allocations: 0 / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.3536, allocations: 116.8 kB / 0.5678 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3536, allocations: 0 / 0.5678 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3536, allocations: 4 kB / 0.5678 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3536, allocations: 3.938 kB / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.3536, allocations: 0 / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.3536, allocations: 0 / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3536, allocations: 0 / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/0.3538, allocations: 120.5 kB / 0.5679 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.383e-06/0.3538, allocations: 3.938 kB / 0.5679 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.3538, allocations: 4 kB / 0.5679 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.169e-05/0.3538, allocations: 3.984 kB / 0.568 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.3538, allocations: 4.031 kB / 0.568 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.3538, allocations: 11.88 kB / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.896e-05/0.3539, allocations: 75.28 kB / 0.568 GB, free: 12.15 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3539, allocations: 0 / 0.568 GB, free: 12.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005291/0.3544, allocations: 159.5 kB / 0.5682 GB, free: 12 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.001285/0.3557, allocations: 0.9328 MB / 0.5691 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.3558, allocations: 110.8 kB / 0.5692 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3558, allocations: 4 kB / 0.5692 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.3559, allocations: 85.05 kB / 0.5693 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.3561, allocations: 4 kB / 0.5693 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004998/0.3566, allocations: 216 kB / 0.5695 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.467e-05/0.3567, allocations: 55.34 kB / 0.5696 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.161e-06/0.3567, allocations: 0 / 0.5696 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.804e-05/0.3567, allocations: 11.44 kB / 0.5696 GB, free: 10.44 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3567, allocations: 0 / 0.5696 GB, free: 10.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.3906, allocations: 6.202 MB / 0.5756 GB, free: 4.363 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.7, allocations: 6.703 kB / 0.5756 GB, free: 4.359 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/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_4.1.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.655221882014303]