Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001272/0.001272, allocations: 124.5 kB / 17.79 MB, free: 5.266 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.001441/0.001441, allocations: 211.2 kB / 20.75 MB, free: 2.312 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.511/1.511, 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2212/0.2212, allocations: 44.9 MB / 355.1 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 67.89 kB / 499.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1412, allocations: 65.42 MB / 0.5517 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001676/0.1429, allocations: 462.7 kB / 0.5522 GB, free: 9.707 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004027/0.1469, allocations: 2.434 MB / 0.5545 GB, free: 7.254 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.117e-05/0.1469, allocations: 4 kB / 0.5545 GB, free: 7.25 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.1469, allocations: 0 / 0.5545 GB, free: 7.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.1469, allocations: 3.938 kB / 0.5545 GB, free: 7.246 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.003063/0.15, allocations: 1.155 MB / 0.5557 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.185e-05/0.1501, allocations: 4 kB / 0.5557 GB, free: 6.086 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.1501, allocations: 4 kB / 0.5557 GB, free: 6.082 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.95e-05/0.1501, allocations: 7.938 kB / 0.5557 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.35e-05/0.1501, allocations: 3.984 kB / 0.5557 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.531e-06/0.1502, allocations: 0 / 0.5557 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001782/0.1519, allocations: 1.034 MB / 0.5567 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.779e-06/0.1519, allocations: 0 / 0.5567 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.152, allocations: 0 / 0.5567 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007144/0.1527, allocations: 447.4 kB / 0.5571 GB, free: 4.598 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1527, allocations: 0 / 0.5571 GB, free: 4.598 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1527, allocations: 4 kB / 0.5571 GB, free: 4.594 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.1527, allocations: 0 / 0.5571 GB, free: 4.594 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.0005496/0.1532, allocations: 444.3 kB / 0.5576 GB, free: 4.105 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1533, allocations: 12.03 kB / 0.5576 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.875e-05/0.1533, allocations: 30.75 kB / 0.5576 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.1534, allocations: 0.9375 kB / 0.5576 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.1535, allocations: 168.3 kB / 0.5578 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1535, allocations: 384 / 0.5578 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.141e-06/0.1535, allocations: 384 / 0.5578 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.288e-05/0.1536, allocations: 45.77 kB / 0.5578 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1536, allocations: 0 / 0.5578 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-06/0.1536, allocations: 0 / 0.5578 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1536, allocations: 0 / 0.5578 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.882e-05/0.1536, allocations: 7.938 kB / 0.5578 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001526/0.1538, allocations: 149.7 kB / 0.558 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.482e-05/0.1538, allocations: 18.52 kB / 0.558 GB, free: 3.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.779e-05/0.1538, allocations: 8.953 kB / 0.558 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-06/0.1538, allocations: 4 kB / 0.558 GB, free: 3.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/0.1539, allocations: 64.2 kB / 0.558 GB, free: 3.477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.1539, allocations: 0 / 0.558 GB, free: 3.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001903/0.1541, allocations: 63.39 kB / 0.5581 GB, free: 3.402 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.237e-05/0.1541, allocations: 77.11 kB / 0.5582 GB, free: 3.309 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.416e-05/0.1542, allocations: 93.81 kB / 0.5583 GB, free: 3.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.1542, allocations: 29.64 kB / 0.5583 GB, free: 3.172 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.46e-05/0.1543, allocations: 80.27 kB / 0.5584 GB, free: 3.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.1543, allocations: 12 kB / 0.5584 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.1543, allocations: 9.719 kB / 0.5584 GB, free: 3.062 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1544, allocations: 310.8 kB / 0.5587 GB, free: 2.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.1545, allocations: 4 kB / 0.5587 GB, free: 2.746 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.56e-06/0.1545, allocations: 0 / 0.5587 GB, free: 2.746 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.493e-05/0.1545, allocations: 64.25 kB / 0.5588 GB, free: 2.668 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1545, allocations: 0 / 0.5588 GB, free: 2.668 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.109e-05/0.1546, allocations: 63.47 kB / 0.5588 GB, free: 2.594 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.1546, allocations: 37.64 kB / 0.5589 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1546, allocations: 0 / 0.5589 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1546, allocations: 0 / 0.5589 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.458e-06/0.1546, allocations: 3.938 kB / 0.5589 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1546, allocations: 0 / 0.5589 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.182e-05/0.1547, allocations: 7.984 kB / 0.5589 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.1547, allocations: 0 / 0.5589 GB, free: 2.539 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.77e-05/0.1548, allocations: 131.5 kB / 0.559 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.1548, allocations: 11.97 kB / 0.559 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.594e-06/0.1548, allocations: 3.125 kB / 0.559 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1548, allocations: 0 / 0.559 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1548, allocations: 0 / 0.559 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1548, allocations: 7.922 kB / 0.559 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.1549, allocations: 149.7 kB / 0.5592 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1549, allocations: 4 kB / 0.5592 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.204e-06/0.1549, allocations: 4 kB / 0.5592 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1549, allocations: 3.938 kB / 0.5592 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.1549, allocations: 0 / 0.5592 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.1549, allocations: 0 / 0.5592 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1549, allocations: 4 kB / 0.5592 GB, free: 2.164 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000106/0.155, allocations: 90.83 kB / 0.5593 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.385e-05/0.1551, allocations: 81.05 kB / 0.5593 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.1551, allocations: 7.875 kB / 0.5593 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-06/0.1551, allocations: 0 / 0.5593 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.1551, allocations: 4 kB / 0.5593 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.1551, allocations: 0 / 0.5593 GB, free: 1.941 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.1551, allocations: 79.31 kB / 0.5594 GB, free: 1.863 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1551, allocations: 0 / 0.5594 GB, free: 1.863 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000484/0.1556, allocations: 159.5 kB / 0.5596 GB, free: 1.707 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.001123/0.1567, allocations: 0.9085 MB / 0.5605 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001002/0.1568, allocations: 59.34 kB / 0.5605 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1569, allocations: 0 / 0.5605 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.818e-05/0.1569, allocations: 63.45 kB / 0.5606 GB, free: 0.625 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.157, allocations: 8 kB / 0.5606 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003989/0.1574, allocations: 182.2 kB / 0.5608 GB, free: 408 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.1577, allocations: 0.6729 MB / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.155e-06/0.1577, allocations: 4 kB / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.514e-05/0.1578, allocations: 7.438 kB / 0.5614 GB, free: 15.69 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1578, allocations: 0 / 0.5614 GB, free: 15.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03702/0.1948, allocations: 5.68 MB / 0.567 GB, free: 10.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.34/8.535, allocations: 6.281 kB / 0.567 GB, free: 10.09 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 11.505220750812441]