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.001356/0.001356, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001431/0.001431, allocations: 216.3 kB / 23.75 MB, free: 4.668 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.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2386/0.2386, allocations: 46.93 MB / 360.9 MB, free: 4.262 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.001957/0.001957, allocations: 63.89 kB / 0.4961 GB, free: 7.914 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3152, allocations: 66.03 MB / 0.5606 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001583/0.3168, allocations: 484.1 kB / 0.5611 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003698/0.3205, allocations: 2.447 MB / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.588e-05/0.3205, allocations: 4 kB / 0.5635 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.3205, allocations: 3.938 kB / 0.5635 GB, free: 1.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.3205, allocations: 4 kB / 0.5635 GB, free: 1.52 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.003093/0.3236, allocations: 1.148 MB / 0.5646 GB, free: 380 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.844e-05/0.3237, allocations: 11.88 kB / 0.5646 GB, free: 368 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.409e-05/0.3237, allocations: 0 / 0.5646 GB, free: 368 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.98e-05/0.3238, allocations: 3.984 kB / 0.5646 GB, free: 364 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.324e-05/0.3238, allocations: 0 / 0.5646 GB, free: 364 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.3238, allocations: 0 / 0.5646 GB, free: 364 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00192/0.3257, allocations: 1.038 MB / 0.5656 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.156e-06/0.3257, allocations: 0 / 0.5656 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.917e-05/0.3257, allocations: 4 kB / 0.5656 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006869/0.3264, allocations: 452.9 kB / 0.5661 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.3264, allocations: 0 / 0.5661 GB, free: 14.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3264, allocations: 0 / 0.5661 GB, free: 14.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.3264, allocations: 0 / 0.5661 GB, free: 14.87 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.0004758/0.3269, allocations: 367.2 kB / 0.5664 GB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.327, allocations: 12.03 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.084e-05/0.327, allocations: 30.75 kB / 0.5665 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.522e-05/0.327, allocations: 0.9375 kB / 0.5665 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.746e-05/0.3271, allocations: 118.4 kB / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.3271, allocations: 384 / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.3271, allocations: 384 / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.506e-05/0.3272, allocations: 37.81 kB / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.3272, allocations: 3.938 kB / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.3272, allocations: 0 / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.3273, allocations: 0 / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.797e-05/0.3273, allocations: 4 kB / 0.5666 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.3275, allocations: 116.8 kB / 0.5667 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.864e-05/0.3275, allocations: 18.58 kB / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.804e-05/0.3275, allocations: 8.938 kB / 0.5668 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.3275, allocations: 4 kB / 0.5668 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.529e-05/0.3276, allocations: 60.2 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.383e-06/0.3276, allocations: 4 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001959/0.3278, allocations: 63.34 kB / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.3279, allocations: 85.09 kB / 0.567 GB, free: 13.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.695e-05/0.3279, allocations: 93.81 kB / 0.5671 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3279, allocations: 25.7 kB / 0.5671 GB, free: 13.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.956e-05/0.328, allocations: 80.14 kB / 0.5672 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.328, allocations: 4 kB / 0.5672 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.328, allocations: 9.719 kB / 0.5672 GB, free: 13.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3282, allocations: 315 kB / 0.5675 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.3282, allocations: 0 / 0.5675 GB, free: 13.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.78e-06/0.3282, allocations: 4 kB / 0.5675 GB, free: 13.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.537e-05/0.3283, allocations: 68.2 kB / 0.5675 GB, free: 13.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3283, allocations: 0 / 0.5675 GB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.486e-05/0.3283, allocations: 59.39 kB / 0.5676 GB, free: 13.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.3284, allocations: 37.64 kB / 0.5676 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.3284, allocations: 0 / 0.5676 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3284, allocations: 4.094 kB / 0.5676 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.3284, allocations: 0 / 0.5676 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.3284, allocations: 0 / 0.5676 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.546e-05/0.3284, allocations: 0 / 0.5676 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.3284, allocations: 4 kB / 0.5676 GB, free: 13.02 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.0001012/0.3285, allocations: 139.5 kB / 0.5678 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.154e-05/0.3285, allocations: 7.938 kB / 0.5678 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.667e-05/0.3286, allocations: 14.94 kB / 0.5678 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3286, allocations: 3.984 kB / 0.5678 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3286, allocations: 4 kB / 0.5678 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.3286, allocations: 0 / 0.5678 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.3287, allocations: 116.8 kB / 0.5679 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3287, allocations: 0 / 0.5679 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.885e-06/0.3287, allocations: 7.938 kB / 0.5679 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3287, allocations: 3.938 kB / 0.5679 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-06/0.3287, allocations: 3.938 kB / 0.5679 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3287, allocations: 0 / 0.5679 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3287, allocations: 0 / 0.5679 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.3288, allocations: 94.83 kB / 0.568 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-06/0.3288, allocations: 3.938 kB / 0.568 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.3288, allocations: 0 / 0.568 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.249e-05/0.3288, allocations: 4 kB / 0.568 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.3289, allocations: 0 / 0.568 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.3289, allocations: 0 / 0.568 GB, free: 12.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.263e-05/0.3289, allocations: 75.28 kB / 0.5681 GB, free: 12.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3289, allocations: 0 / 0.5681 GB, free: 12.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00051/0.3294, allocations: 163.5 kB / 0.5682 GB, free: 12.31 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.001092/0.3305, allocations: 0.9084 MB / 0.5691 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001199/0.3306, allocations: 59.41 kB / 0.5692 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3306, allocations: 0 / 0.5692 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.121e-05/0.3307, allocations: 55.41 kB / 0.5692 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.3308, allocations: 4 kB / 0.5692 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.3312, allocations: 186.3 kB / 0.5694 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.3315, allocations: 0.6728 MB / 0.5701 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.013e-06/0.3315, allocations: 4 kB / 0.5701 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.635e-05/0.3315, allocations: 7.438 kB / 0.5701 GB, free: 10.29 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3315, allocations: 0 / 0.5701 GB, free: 10.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0335/0.365, allocations: 5.794 MB / 0.5758 GB, free: 4.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.7, allocations: 10.83 kB / 0.5758 GB, free: 4.621 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_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.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_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.643452682001225]