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.001243/0.001243, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001517/0.001517, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.473/1.473, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.2355/0.2355, allocations: 44.94 MB / 359.6 MB, free: 6.086 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="cs",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.002162/0.002162, allocations: 59.91 kB / 0.4938 GB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3497, allocations: 65.48 MB / 0.5577 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001696/0.3514, allocations: 472.4 kB / 0.5581 GB, free: 7.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004021/0.3554, allocations: 2.284 MB / 0.5604 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.13e-05/0.3555, allocations: 4 kB / 0.5604 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.3555, allocations: 0 / 0.5604 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.693e-06/0.3555, allocations: 0 / 0.5604 GB, free: 4.809 MB / 398.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.002915/0.3584, allocations: 1.109 MB / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.826e-05/0.3584, allocations: 0 / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.553e-05/0.3585, allocations: 4 kB / 0.5615 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.68e-05/0.3585, allocations: 4 kB / 0.5615 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.554e-05/0.3585, allocations: 0 / 0.5615 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.072e-06/0.3585, allocations: 0 / 0.5615 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.3603, allocations: 1.003 MB / 0.5625 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.527e-05/0.3603, allocations: 7.969 kB / 0.5625 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.3603, allocations: 7.938 kB / 0.5625 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006304/0.361, allocations: 436.9 kB / 0.5629 GB, free: 2.246 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.361, allocations: 0 / 0.5629 GB, free: 2.246 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.361, allocations: 0 / 0.5629 GB, free: 2.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.361, allocations: 4 kB / 0.5629 GB, free: 2.242 MB / 398.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.000434/0.3614, allocations: 367.2 kB / 0.5632 GB, free: 1.848 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3614, allocations: 12.03 kB / 0.5632 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.782e-05/0.3615, allocations: 192 / 0.5632 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.275e-05/0.3615, allocations: 30.75 kB / 0.5633 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.526e-05/0.3615, allocations: 4.938 kB / 0.5633 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.494e-05/0.3616, allocations: 102.5 kB / 0.5634 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.3616, allocations: 4.375 kB / 0.5634 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.897e-06/0.3616, allocations: 4.359 kB / 0.5634 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.113e-05/0.3617, allocations: 63.28 kB / 0.5634 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.3617, allocations: 3.984 kB / 0.5635 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.3617, allocations: 7.938 kB / 0.5635 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3617, allocations: 0 / 0.5635 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.401e-05/0.3618, allocations: 29.7 kB / 0.5635 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.3619, allocations: 116.8 kB / 0.5636 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.373e-05/0.3619, allocations: 44.27 kB / 0.5636 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.211e-05/0.362, allocations: 34.66 kB / 0.5637 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.362, allocations: 7.938 kB / 0.5637 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.362, allocations: 56.27 kB / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.362, allocations: 0 / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002046/0.3622, allocations: 122.7 kB / 0.5639 GB, free: 1.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.3623, allocations: 81.11 kB / 0.5639 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.008e-05/0.3624, allocations: 101.8 kB / 0.564 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.3624, allocations: 25.7 kB / 0.5641 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.3624, allocations: 80.14 kB / 0.5641 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.3624, allocations: 0 / 0.5641 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.3624, allocations: 13.72 kB / 0.5641 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.3626, allocations: 310.8 kB / 0.5644 GB, free: 416 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.289e-05/0.3626, allocations: 29.69 kB / 0.5645 GB, free: 380 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.92e-05/0.3626, allocations: 29.7 kB / 0.5645 GB, free: 344 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.786e-05/0.3627, allocations: 72.39 kB / 0.5646 GB, free: 256 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3627, allocations: 0 / 0.5646 GB, free: 256 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.736e-05/0.3628, allocations: 89.05 kB / 0.5646 GB, free: 148 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.96e-05/0.3628, allocations: 33.69 kB / 0.5647 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3628, allocations: 0 / 0.5647 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3628, allocations: 0 / 0.5647 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.3628, allocations: 0 / 0.5647 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.3628, allocations: 3.984 kB / 0.5647 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.695e-05/0.3629, allocations: 4 kB / 0.5647 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.3629, allocations: 0 / 0.5647 GB, free: 100 kB / 398.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.0001106/0.363, allocations: 139.6 kB / 0.5648 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.363, allocations: 7.938 kB / 0.5648 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.208e-05/0.363, allocations: 6.984 kB / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.363, allocations: 0 / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.363, allocations: 0 / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.363, allocations: 0 / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001011/0.3631, allocations: 116.8 kB / 0.5649 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3631, allocations: 0 / 0.5649 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.637e-06/0.3631, allocations: 3.938 kB / 0.565 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3631, allocations: 0 / 0.565 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.3631, allocations: 0 / 0.565 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.3631, allocations: 11.88 kB / 0.565 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3631, allocations: 4 kB / 0.565 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.3633, allocations: 120.5 kB / 0.5651 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.243e-06/0.3633, allocations: 7.938 kB / 0.5651 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.3633, allocations: 3.984 kB / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-06/0.3633, allocations: 0 / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-06/0.3633, allocations: 0 / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3633, allocations: 11.94 kB / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.166e-05/0.3633, allocations: 75.28 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3633, allocations: 0 / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004829/0.3638, allocations: 159.6 kB / 0.5653 GB, free: 15.35 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.001108/0.3649, allocations: 0.9359 MB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.365, allocations: 114.8 kB / 0.5664 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3651, allocations: 0 / 0.5664 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.235e-05/0.3651, allocations: 81.11 kB / 0.5664 GB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.3652, allocations: 2.234 kB / 0.5664 GB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004241/0.3657, allocations: 215.9 kB / 0.5666 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.923e-05/0.3657, allocations: 63.33 kB / 0.5667 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.68e-06/0.3657, allocations: 3.938 kB / 0.5667 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.466e-05/0.3657, allocations: 7.438 kB / 0.5667 GB, free: 13.8 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3657, allocations: 4.125 kB / 0.5667 GB, free: 13.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.3925, allocations: 5.848 MB / 0.5724 GB, free: 8.082 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.26, allocations: 7.625 kB / 0.5724 GB, free: 8.078 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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: 15.232371620018966]