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.001793/0.001793, allocations: 132.4 kB / 17.79 MB, free: 5.242 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.002207/0.002207, allocations: 210.5 kB / 20.75 MB, free: 2.293 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.518/1.518, allocations: 230.4 MB / 254 MB, free: 15.01 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.2252/0.2252, allocations: 46.92 MB / 357 MB, free: 10.16 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.00221/0.00221, allocations: 83.8 kB / 0.4909 GB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1334, allocations: 66.04 MB / 0.5554 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001613/0.1351, allocations: 479.6 kB / 0.5559 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003737/0.1388, allocations: 2.426 MB / 0.5583 GB, free: 2.629 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.308e-05/0.1388, allocations: 4 kB / 0.5583 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.374e-05/0.1388, allocations: 0 / 0.5583 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.051e-06/0.1388, allocations: 4 kB / 0.5583 GB, free: 2.621 MB / 414.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.003016/0.1419, allocations: 1.146 MB / 0.5594 GB, free: 1.473 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.122e-05/0.1419, allocations: 3.938 kB / 0.5594 GB, free: 1.469 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.548e-05/0.1419, allocations: 0 / 0.5594 GB, free: 1.469 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.07e-05/0.142, allocations: 7.984 kB / 0.5594 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.934e-05/0.142, allocations: 0 / 0.5594 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.65e-06/0.142, allocations: 4 kB / 0.5594 GB, free: 1.457 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.1436, allocations: 1.034 MB / 0.5604 GB, free: 432 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.288e-06/0.1437, allocations: 3.938 kB / 0.5604 GB, free: 428 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.1437, allocations: 0 / 0.5604 GB, free: 428 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006371/0.1443, allocations: 451 kB / 0.5608 GB, free: 15.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1443, allocations: 0 / 0.5608 GB, free: 15.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1443, allocations: 0 / 0.5608 GB, free: 15.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.1443, allocations: 0 / 0.5608 GB, free: 15.98 MB / 430.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.000489/0.1448, allocations: 452.3 kB / 0.5613 GB, free: 15.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1448, allocations: 12.03 kB / 0.5613 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.511e-05/0.1449, allocations: 30.75 kB / 0.5613 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.1449, allocations: 4.938 kB / 0.5613 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.145, allocations: 164.4 kB / 0.5615 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.145, allocations: 384 / 0.5615 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.145, allocations: 384 / 0.5615 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.26e-05/0.1451, allocations: 33.83 kB / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.1451, allocations: 3.938 kB / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.1451, allocations: 0 / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.788e-06/0.1451, allocations: 4 kB / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.811e-05/0.1452, allocations: 4 kB / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.1453, allocations: 145.7 kB / 0.5617 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.644e-05/0.1453, allocations: 22.56 kB / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.661e-05/0.1454, allocations: 8.953 kB / 0.5617 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.074e-06/0.1454, allocations: 0 / 0.5617 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/0.1454, allocations: 64.2 kB / 0.5618 GB, free: 14.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1454, allocations: 0 / 0.5618 GB, free: 14.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001781/0.1456, allocations: 67.33 kB / 0.5618 GB, free: 14.79 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.1457, allocations: 77.11 kB / 0.5619 GB, free: 14.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.048e-05/0.1457, allocations: 97.81 kB / 0.562 GB, free: 14.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.1457, allocations: 25.7 kB / 0.562 GB, free: 14.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.146e-05/0.1458, allocations: 80.14 kB / 0.5621 GB, free: 14.47 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.1458, allocations: 4 kB / 0.5621 GB, free: 14.47 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.1458, allocations: 9.719 kB / 0.5621 GB, free: 14.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1459, allocations: 315 kB / 0.5624 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.146, allocations: 4 kB / 0.5624 GB, free: 14.13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-06/0.146, allocations: 3.984 kB / 0.5624 GB, free: 14.13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.148e-05/0.146, allocations: 68.2 kB / 0.5625 GB, free: 14.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.146, allocations: 0 / 0.5625 GB, free: 14.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.98e-05/0.1461, allocations: 55.41 kB / 0.5625 GB, free: 13.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.1461, allocations: 37.64 kB / 0.5626 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1461, allocations: 96 / 0.5626 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1461, allocations: 7.984 kB / 0.5626 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.745e-06/0.1461, allocations: 4 kB / 0.5626 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1462, allocations: 0 / 0.5626 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.421e-05/0.1462, allocations: 7.875 kB / 0.5626 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.1462, allocations: 4 kB / 0.5626 GB, free: 13.91 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 9.486e-05/0.1463, allocations: 131.5 kB / 0.5627 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.1463, allocations: 7.938 kB / 0.5627 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.276e-06/0.1463, allocations: 3.125 kB / 0.5627 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.1463, allocations: 4 kB / 0.5627 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1463, allocations: 0 / 0.5627 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1463, allocations: 0 / 0.5627 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1464, allocations: 149.7 kB / 0.5629 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1464, allocations: 0 / 0.5629 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-06/0.1464, allocations: 4 kB / 0.5629 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1464, allocations: 3.938 kB / 0.5629 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.1464, allocations: 3.938 kB / 0.5629 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1464, allocations: 0 / 0.5629 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1464, allocations: 0 / 0.5629 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001071/0.1465, allocations: 94.83 kB / 0.563 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.1466, allocations: 81.05 kB / 0.563 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.1466, allocations: 0 / 0.563 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-06/0.1466, allocations: 0 / 0.563 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.263e-05/0.1466, allocations: 4 kB / 0.563 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.1466, allocations: 0 / 0.563 GB, free: 13.33 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.528e-05/0.1466, allocations: 79.27 kB / 0.5631 GB, free: 13.25 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1466, allocations: 0 / 0.5631 GB, free: 13.25 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004628/0.1471, allocations: 159.6 kB / 0.5633 GB, free: 13.1 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.001086/0.1482, allocations: 0.9148 MB / 0.5642 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.777e-05/0.1483, allocations: 59.39 kB / 0.5642 GB, free: 12.08 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1483, allocations: 0 / 0.5642 GB, free: 12.08 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.818e-05/0.1483, allocations: 59.41 kB / 0.5643 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.1485, allocations: 0 / 0.5643 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004023/0.1489, allocations: 194.3 kB / 0.5645 GB, free: 11.78 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.1492, allocations: 0.6767 MB / 0.5651 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.99e-06/0.1492, allocations: 0 / 0.5651 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.529e-05/0.1492, allocations: 11.44 kB / 0.5651 GB, free: 11.07 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1492, allocations: 0 / 0.5651 GB, free: 11.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.1792, allocations: 5.677 MB / 0.5707 GB, free: 5.469 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/8.788, allocations: 4 kB / 0.5707 GB, free: 5.465 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.840622066985816]