Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.001393/0.001393, allocations: 107.4 kB / 20.48 MB, free: 1.262 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.001542/0.001542, allocations: 211.5 kB / 23.78 MB, free: 4.434 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.498/1.498, allocations: 230.5 MB / 257.5 MB, free: 7.711 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.2302/0.2302, allocations: 46.94 MB / 360.9 MB, free: 3.902 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.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003856/0.003856, allocations: 79.88 kB / 0.4962 GB, free: 7.527 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3657, allocations: 66.08 MB / 0.5608 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001773/0.3675, allocations: 477 kB / 0.5612 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003737/0.3713, allocations: 2.287 MB / 0.5634 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.608e-05/0.3713, allocations: 0 / 0.5634 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.105e-05/0.3713, allocations: 0 / 0.5634 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.3713, allocations: 0 / 0.5634 GB, free: 1.246 MB / 398.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.002992/0.3743, allocations: 1.105 MB / 0.5645 GB, free: 144 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.784e-05/0.3743, allocations: 4 kB / 0.5645 GB, free: 140 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.579e-05/0.3744, allocations: 0 / 0.5645 GB, free: 140 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.591e-05/0.3744, allocations: 3.984 kB / 0.5645 GB, free: 136 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.355e-05/0.3744, allocations: 3.938 kB / 0.5645 GB, free: 132 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.3744, allocations: 0 / 0.5645 GB, free: 132 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.3761, allocations: 0.9794 MB / 0.5655 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-06/0.3761, allocations: 4 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.601e-05/0.3761, allocations: 0 / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006194/0.3767, allocations: 437 kB / 0.5659 GB, free: 14.72 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3767, allocations: 4 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3767, allocations: 0 / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.3767, allocations: 0 / 0.5659 GB, free: 14.71 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.0004618/0.3772, allocations: 363.2 kB / 0.5663 GB, free: 14.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3772, allocations: 12.03 kB / 0.5663 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.961e-05/0.3772, allocations: 34.69 kB / 0.5663 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.324e-05/0.3773, allocations: 0.9375 kB / 0.5663 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.024e-05/0.3774, allocations: 110.5 kB / 0.5664 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.3774, allocations: 4.375 kB / 0.5664 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.3774, allocations: 384 / 0.5664 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.3775, allocations: 59.52 kB / 0.5665 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.3775, allocations: 7.938 kB / 0.5665 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.3775, allocations: 4 kB / 0.5665 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.3775, allocations: 0 / 0.5665 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.178e-05/0.3775, allocations: 25.7 kB / 0.5665 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.3777, allocations: 124.8 kB / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.202e-05/0.3777, allocations: 48.16 kB / 0.5667 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.351e-05/0.3778, allocations: 42.64 kB / 0.5667 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-06/0.3778, allocations: 0 / 0.5667 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/0.3778, allocations: 60.2 kB / 0.5668 GB, free: 13.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.3778, allocations: 0 / 0.5668 GB, free: 13.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002044/0.378, allocations: 118.8 kB / 0.5669 GB, free: 13.53 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.3781, allocations: 85.09 kB / 0.567 GB, free: 13.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.023e-05/0.3781, allocations: 93.81 kB / 0.5671 GB, free: 13.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.3781, allocations: 25.7 kB / 0.5671 GB, free: 13.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.609e-05/0.3782, allocations: 80.14 kB / 0.5672 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.3782, allocations: 0 / 0.5672 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.3782, allocations: 13.84 kB / 0.5672 GB, free: 13.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.3784, allocations: 318.8 kB / 0.5675 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.81e-05/0.3784, allocations: 25.7 kB / 0.5675 GB, free: 12.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.118e-05/0.3785, allocations: 29.7 kB / 0.5675 GB, free: 12.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.104e-05/0.3785, allocations: 64.25 kB / 0.5676 GB, free: 12.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3785, allocations: 0 / 0.5676 GB, free: 12.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.7e-05/0.3786, allocations: 89.05 kB / 0.5677 GB, free: 12.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.3786, allocations: 37.64 kB / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3786, allocations: 0 / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.3787, allocations: 96 / 0.5677 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.725e-06/0.3787, allocations: 7.984 kB / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.3787, allocations: 0 / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.739e-05/0.3787, allocations: 4 kB / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.3787, allocations: 0 / 0.5677 GB, free: 12.57 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.994e-05/0.3788, allocations: 131.5 kB / 0.5678 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.383e-05/0.3788, allocations: 11.92 kB / 0.5679 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.283e-05/0.3788, allocations: 3 kB / 0.5679 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3788, allocations: 0 / 0.5679 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3788, allocations: 0 / 0.5679 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.3788, allocations: 0 / 0.5679 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.3789, allocations: 128.8 kB / 0.568 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3789, allocations: 0 / 0.568 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.02e-07/0.3789, allocations: 0 / 0.568 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3789, allocations: 3.938 kB / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.3789, allocations: 0 / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.3789, allocations: 3.938 kB / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3789, allocations: 3.938 kB / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.3791, allocations: 120.5 kB / 0.5681 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.196e-06/0.3791, allocations: 7.938 kB / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.3791, allocations: 0 / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.69e-05/0.3791, allocations: 8.031 kB / 0.5681 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.148e-05/0.3791, allocations: 0 / 0.5681 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.3791, allocations: 4 kB / 0.5681 GB, free: 12.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.978e-05/0.3792, allocations: 75.28 kB / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3792, allocations: 0 / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.3796, allocations: 155.5 kB / 0.5683 GB, free: 11.83 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.001156/0.3808, allocations: 0.9345 MB / 0.5693 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001353/0.3809, allocations: 118.7 kB / 0.5694 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3809, allocations: 4 kB / 0.5694 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.082e-05/0.381, allocations: 77.11 kB / 0.5694 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.3811, allocations: 4 kB / 0.5695 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004352/0.3816, allocations: 216 kB / 0.5697 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.386e-05/0.3816, allocations: 51.36 kB / 0.5697 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.3816, allocations: 0 / 0.5697 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/0.3816, allocations: 12.5 kB / 0.5697 GB, free: 10.27 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3816, allocations: 0 / 0.5697 GB, free: 10.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.035/0.4166, allocations: 6.271 MB / 0.5758 GB, free: 4.094 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.09, allocations: 26.52 kB / 0.5759 GB, free: 4.074 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_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_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/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_trunk_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: 15.116470840002876]