Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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.001722/0.001722, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001937/0.001937, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.543/1.543, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2284/0.2284, allocations: 46.93 MB / 357.1 MB, free: 10.32 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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002233/0.002233, allocations: 67.88 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1282, allocations: 65.99 MB / 0.5553 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00188/0.1301, allocations: 476.9 kB / 0.5558 GB, free: 5.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004319/0.1344, allocations: 2.418 MB / 0.5582 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.497e-05/0.1344, allocations: 8 kB / 0.5582 GB, free: 2.965 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.892e-05/0.1344, allocations: 0 / 0.5582 GB, free: 2.965 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.064e-06/0.1345, allocations: 0 / 0.5582 GB, free: 2.965 MB / 414.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.003237/0.1377, allocations: 1.156 MB / 0.5593 GB, free: 1.809 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.32e-05/0.1377, allocations: 0 / 0.5593 GB, free: 1.809 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.1378, allocations: 3.984 kB / 0.5593 GB, free: 1.805 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.647e-05/0.1378, allocations: 4 kB / 0.5593 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.126e-05/0.1378, allocations: 7.984 kB / 0.5593 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.981e-06/0.1378, allocations: 0 / 0.5593 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001916/0.1397, allocations: 1.034 MB / 0.5603 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.087e-05/0.1398, allocations: 0 / 0.5603 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.213e-05/0.1398, allocations: 0 / 0.5603 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008846/0.1407, allocations: 447 kB / 0.5608 GB, free: 328 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1407, allocations: 0 / 0.5608 GB, free: 328 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1407, allocations: 0 / 0.5608 GB, free: 328 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1407, allocations: 0 / 0.5608 GB, free: 328 kB / 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.0006277/0.1413, allocations: 452.3 kB / 0.5612 GB, free: 15.82 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.1414, allocations: 15.97 kB / 0.5612 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.327e-05/0.1414, allocations: 30.75 kB / 0.5612 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.971e-05/0.1414, allocations: 0.9375 kB / 0.5612 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.1416, allocations: 160.4 kB / 0.5614 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.1416, allocations: 384 / 0.5614 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.906e-06/0.1416, allocations: 4.312 kB / 0.5614 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.925e-05/0.1417, allocations: 41.75 kB / 0.5614 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.373e-06/0.1417, allocations: 0 / 0.5614 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.1417, allocations: 8 kB / 0.5614 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1417, allocations: 0 / 0.5614 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.094e-05/0.1417, allocations: 4 kB / 0.5614 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.1419, allocations: 149.7 kB / 0.5616 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.908e-05/0.1419, allocations: 18.56 kB / 0.5616 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.958e-05/0.142, allocations: 12.94 kB / 0.5616 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.142, allocations: 0 / 0.5616 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.567e-05/0.142, allocations: 68.14 kB / 0.5617 GB, free: 15.19 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.142, allocations: 0 / 0.5617 GB, free: 15.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001918/0.1422, allocations: 63.41 kB / 0.5617 GB, free: 15.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/0.1423, allocations: 77.11 kB / 0.5618 GB, free: 15.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.332e-05/0.1423, allocations: 97.8 kB / 0.5619 GB, free: 14.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.1424, allocations: 25.7 kB / 0.5619 GB, free: 14.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.577e-05/0.1424, allocations: 80.14 kB / 0.562 GB, free: 14.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.1424, allocations: 4 kB / 0.562 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.1424, allocations: 13.84 kB / 0.562 GB, free: 14.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1426, allocations: 310.8 kB / 0.5623 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.563e-05/0.1426, allocations: 8 kB / 0.5623 GB, free: 14.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.091e-06/0.1426, allocations: 0 / 0.5623 GB, free: 14.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.173e-05/0.1427, allocations: 64.2 kB / 0.5624 GB, free: 14.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1427, allocations: 0 / 0.5624 GB, free: 14.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.796e-05/0.1428, allocations: 63.39 kB / 0.5624 GB, free: 14.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.1428, allocations: 37.73 kB / 0.5625 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1428, allocations: 0 / 0.5625 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1428, allocations: 0 / 0.5625 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1428, allocations: 0 / 0.5625 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1428, allocations: 0 / 0.5625 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.187e-05/0.1428, allocations: 4 kB / 0.5625 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.1428, allocations: 3.938 kB / 0.5625 GB, free: 14.26 MB / 430.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.0001017/0.1429, allocations: 139.5 kB / 0.5626 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.319e-05/0.143, allocations: 7.938 kB / 0.5626 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.455e-05/0.143, allocations: 7.125 kB / 0.5626 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.143, allocations: 0 / 0.5626 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.143, allocations: 0 / 0.5626 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.143, allocations: 0 / 0.5626 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.1431, allocations: 149.6 kB / 0.5628 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1431, allocations: 0 / 0.5628 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-06/0.1431, allocations: 4 kB / 0.5628 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1431, allocations: 3.938 kB / 0.5628 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.1431, allocations: 3.938 kB / 0.5628 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1431, allocations: 0 / 0.5628 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1431, allocations: 0 / 0.5628 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.1432, allocations: 94.83 kB / 0.5629 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.552e-05/0.1433, allocations: 81.05 kB / 0.563 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.1433, allocations: 0 / 0.563 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.364e-05/0.1433, allocations: 4 kB / 0.563 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.1433, allocations: 4 kB / 0.563 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.1433, allocations: 0 / 0.563 GB, free: 13.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.893e-05/0.1434, allocations: 75.28 kB / 0.563 GB, free: 13.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1434, allocations: 4.031 kB / 0.563 GB, free: 13.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005759/0.144, allocations: 163.5 kB / 0.5632 GB, free: 13.43 MB / 430.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.001261/0.1452, allocations: 0.9045 MB / 0.5641 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001119/0.1453, allocations: 59.41 kB / 0.5641 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1453, allocations: 0 / 0.5641 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.229e-05/0.1454, allocations: 55.41 kB / 0.5642 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1455, allocations: 8.125 kB / 0.5642 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000476/0.146, allocations: 194.1 kB / 0.5644 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.1463, allocations: 0.669 MB / 0.565 GB, free: 11.42 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.046e-05/0.1463, allocations: 11.92 kB / 0.565 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.609e-05/0.1463, allocations: 7.438 kB / 0.5651 GB, free: 11.4 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1463, allocations: 0 / 0.5651 GB, free: 11.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03066/0.177, allocations: 5.681 MB / 0.5706 GB, free: 5.805 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.404/8.581, allocations: 9.312 kB / 0.5706 GB, free: 5.801 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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: 11.515700576128438]