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.001778/0.001778, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002312/0.002312, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.585/1.585, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.2374/0.2374, allocations: 46.94 MB / 361.7 MB, free: 4.359 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 59.91 kB / 0.4969 GB, free: 7.961 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3352, allocations: 66.04 MB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001608/0.3368, allocations: 484 kB / 0.5618 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003817/0.3406, allocations: 2.454 MB / 0.5642 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.216e-05/0.3406, allocations: 0 / 0.5642 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.3406, allocations: 0 / 0.5642 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.69e-06/0.3406, allocations: 0 / 0.5642 GB, free: 1.539 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.003006/0.3437, allocations: 1.16 MB / 0.5654 GB, free: 388 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.573e-05/0.3437, allocations: 7.875 kB / 0.5654 GB, free: 380 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.949e-05/0.3437, allocations: 0 / 0.5654 GB, free: 380 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.976e-05/0.3438, allocations: 7.984 kB / 0.5654 GB, free: 372 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.048e-05/0.3438, allocations: 0 / 0.5654 GB, free: 372 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-06/0.3438, allocations: 0 / 0.5654 GB, free: 372 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001899/0.3457, allocations: 1.034 MB / 0.5664 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.3457, allocations: 3.984 kB / 0.5664 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.3457, allocations: 0 / 0.5664 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007507/0.3465, allocations: 453 kB / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3465, allocations: 0 / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3465, allocations: 0 / 0.5668 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.3465, allocations: 4 kB / 0.5668 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.0005058/0.347, allocations: 363.2 kB / 0.5672 GB, free: 14.49 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.347, allocations: 12.03 kB / 0.5672 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.73e-05/0.3471, allocations: 4.188 kB / 0.5672 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.888e-05/0.3471, allocations: 30.75 kB / 0.5672 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.3471, allocations: 4.938 kB / 0.5672 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.319e-05/0.3472, allocations: 110.5 kB / 0.5673 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.3472, allocations: 384 / 0.5673 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.3472, allocations: 384 / 0.5673 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.514e-05/0.3473, allocations: 37.56 kB / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.3473, allocations: 4 kB / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.3473, allocations: 0 / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3473, allocations: 0 / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.135e-05/0.3474, allocations: 4 kB / 0.5674 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.3475, allocations: 116.8 kB / 0.5675 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.631e-05/0.3476, allocations: 18.58 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.3476, allocations: 4.859 kB / 0.5675 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.3476, allocations: 7.922 kB / 0.5675 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.93e-05/0.3476, allocations: 64.3 kB / 0.5676 GB, free: 13.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.3476, allocations: 0 / 0.5676 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.00018/0.3478, allocations: 67.34 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.3479, allocations: 81.11 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.168e-05/0.3479, allocations: 93.81 kB / 0.5678 GB, free: 13.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.348, allocations: 25.7 kB / 0.5678 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/0.348, allocations: 84.12 kB / 0.5679 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.388e-05/0.348, allocations: 0 / 0.5679 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.348, allocations: 13.72 kB / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3482, allocations: 315 kB / 0.5682 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.096e-05/0.3482, allocations: 0 / 0.5682 GB, free: 13.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.425e-06/0.3482, allocations: 4 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.292e-05/0.3483, allocations: 64.2 kB / 0.5683 GB, free: 13.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3483, allocations: 0 / 0.5683 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.614e-05/0.3483, allocations: 67.33 kB / 0.5684 GB, free: 13.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.3484, allocations: 33.7 kB / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3484, allocations: 0 / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3484, allocations: 4 kB / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.3484, allocations: 4.094 kB / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.3484, allocations: 0 / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.387e-05/0.3484, allocations: 0 / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.3484, allocations: 0 / 0.5684 GB, free: 13.03 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.000104/0.3485, allocations: 143.5 kB / 0.5685 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.3485, allocations: 7.938 kB / 0.5686 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.538e-06/0.3486, allocations: 6.938 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3486, allocations: 0 / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3486, allocations: 4 kB / 0.5686 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.3486, allocations: 4 kB / 0.5686 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.3487, allocations: 112.8 kB / 0.5687 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3487, allocations: 0 / 0.5687 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.167e-06/0.3487, allocations: 7.875 kB / 0.5687 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.3487, allocations: 3.984 kB / 0.5687 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.3487, allocations: 4 kB / 0.5687 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3487, allocations: 0 / 0.5687 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3487, allocations: 3.984 kB / 0.5687 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.3488, allocations: 90.84 kB / 0.5688 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.896e-06/0.3488, allocations: 7.922 kB / 0.5688 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.3488, allocations: 0 / 0.5688 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-06/0.3488, allocations: 0 / 0.5688 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.469e-05/0.3488, allocations: 4 kB / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.3488, allocations: 0 / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.441e-05/0.3489, allocations: 75.28 kB / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3489, allocations: 0 / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004956/0.3494, allocations: 159.5 kB / 0.569 GB, free: 12.32 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.001161/0.3505, allocations: 0.9161 MB / 0.5699 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001077/0.3506, allocations: 59.41 kB / 0.57 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3506, allocations: 0 / 0.57 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.103e-05/0.3507, allocations: 55.41 kB / 0.57 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.3508, allocations: 2.344 kB / 0.57 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004477/0.3513, allocations: 194.2 kB / 0.5702 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.3516, allocations: 0.6729 MB / 0.5709 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.202e-06/0.3516, allocations: 0 / 0.5709 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.759e-05/0.3516, allocations: 7.438 kB / 0.5709 GB, free: 10.3 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3516, allocations: 0 / 0.5709 GB, free: 10.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.3786, allocations: 5.829 MB / 0.5766 GB, free: 4.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.91, allocations: 0 / 0.5766 GB, free: 4.609 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: 15.001244463026524]