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.001693/0.001693, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002147/0.002147, allocations: 220.2 kB / 24.53 MB, free: 4.008 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.548/1.548, allocations: 230.5 MB / 258.2 MB, free: 8.004 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.2465/0.2465, allocations: 46.94 MB / 361.6 MB, free: 4.172 MB / 286.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003763/0.003763, allocations: 75.88 kB / 0.4969 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.387, allocations: 66.08 MB / 0.5615 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001606/0.3886, allocations: 479.3 kB / 0.5619 GB, free: 3.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003905/0.3925, allocations: 2.45 MB / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.883e-05/0.3925, allocations: 0 / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.082e-05/0.3925, allocations: 0 / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.3925, allocations: 0 / 0.5643 GB, free: 1.359 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.003044/0.3956, allocations: 1.17 MB / 0.5655 GB, free: 196 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.768e-05/0.3956, allocations: 0 / 0.5655 GB, free: 196 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.523e-05/0.3956, allocations: 11.92 kB / 0.5655 GB, free: 184 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.37e-05/0.3956, allocations: 0 / 0.5655 GB, free: 184 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.725e-05/0.3957, allocations: 0 / 0.5655 GB, free: 184 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.39e-06/0.3957, allocations: 0 / 0.5655 GB, free: 184 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.3975, allocations: 1.038 MB / 0.5665 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.3975, allocations: 0 / 0.5665 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.392e-05/0.3975, allocations: 7.984 kB / 0.5665 GB, free: 15.13 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006968/0.3982, allocations: 448.9 kB / 0.5669 GB, free: 14.7 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3982, allocations: 4 kB / 0.5669 GB, free: 14.69 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3982, allocations: 0 / 0.5669 GB, free: 14.69 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.3982, allocations: 0 / 0.5669 GB, free: 14.69 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.0004687/0.3987, allocations: 371.2 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3987, allocations: 12.03 kB / 0.5673 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.548e-05/0.3988, allocations: 192 / 0.5673 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.736e-05/0.3988, allocations: 30.75 kB / 0.5673 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.516e-05/0.3988, allocations: 0.9375 kB / 0.5673 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.032e-05/0.3989, allocations: 106.5 kB / 0.5674 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.3989, allocations: 4.312 kB / 0.5674 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-06/0.3989, allocations: 384 / 0.5674 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.399, allocations: 33.64 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.399, allocations: 3.984 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-06/0.399, allocations: 4 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.399, allocations: 0 / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.056e-05/0.399, allocations: 3.938 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.3992, allocations: 120.8 kB / 0.5676 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.807e-05/0.3992, allocations: 14.58 kB / 0.5676 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.3992, allocations: 4.859 kB / 0.5676 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.3993, allocations: 8.031 kB / 0.5676 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.877e-05/0.3993, allocations: 60.27 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.3993, allocations: 0 / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001875/0.3995, allocations: 71.33 kB / 0.5677 GB, free: 13.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3996, allocations: 77.11 kB / 0.5678 GB, free: 13.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.617e-05/0.3996, allocations: 93.81 kB / 0.5679 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.3996, allocations: 25.7 kB / 0.5679 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.586e-05/0.3997, allocations: 80.14 kB / 0.568 GB, free: 13.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.3997, allocations: 0 / 0.568 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.3997, allocations: 21.83 kB / 0.568 GB, free: 13.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3999, allocations: 310.8 kB / 0.5683 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.312e-05/0.3999, allocations: 4 kB / 0.5683 GB, free: 13.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.586e-06/0.3999, allocations: 7.938 kB / 0.5683 GB, free: 13.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.701e-05/0.3999, allocations: 60.27 kB / 0.5684 GB, free: 12.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3999, allocations: 0 / 0.5684 GB, free: 12.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.622e-05/0.4, allocations: 67.27 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.702e-05/0.4001, allocations: 33.7 kB / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.4001, allocations: 4.094 kB / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.4001, allocations: 0 / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.4001, allocations: 0 / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.4001, allocations: 0 / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.44e-05/0.4001, allocations: 0 / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.4001, allocations: 4 kB / 0.5685 GB, free: 12.84 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.273e-05/0.4002, allocations: 135.5 kB / 0.5686 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.4002, allocations: 3.938 kB / 0.5686 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.4002, allocations: 6.984 kB / 0.5686 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.4002, allocations: 11.94 kB / 0.5686 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4002, allocations: 0 / 0.5686 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.4003, allocations: 0 / 0.5686 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.4004, allocations: 112.8 kB / 0.5687 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4004, allocations: 4 kB / 0.5688 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.475e-06/0.4004, allocations: 3.938 kB / 0.5688 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4004, allocations: 4 kB / 0.5688 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.4004, allocations: 0 / 0.5688 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.4004, allocations: 0 / 0.5688 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.4004, allocations: 3.984 kB / 0.5688 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001258/0.4005, allocations: 98.77 kB / 0.5689 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.181e-06/0.4005, allocations: 3.938 kB / 0.5689 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.4005, allocations: 3.984 kB / 0.5689 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-06/0.4005, allocations: 0 / 0.5689 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-06/0.4005, allocations: 4 kB / 0.5689 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.4005, allocations: 4 kB / 0.5689 GB, free: 12.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.352e-05/0.4006, allocations: 75.28 kB / 0.5689 GB, free: 12.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4006, allocations: 4.031 kB / 0.5689 GB, free: 12.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005304/0.4011, allocations: 159.5 kB / 0.5691 GB, free: 12.13 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.00125/0.4024, allocations: 0.9061 MB / 0.57 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.4025, allocations: 59.39 kB / 0.57 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4025, allocations: 0 / 0.57 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.998e-05/0.4025, allocations: 55.41 kB / 0.5701 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.4026, allocations: 128 / 0.5701 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004519/0.4031, allocations: 194.2 kB / 0.5703 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.4034, allocations: 0.6729 MB / 0.5709 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.4034, allocations: 0 / 0.5709 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.982e-05/0.4035, allocations: 7.438 kB / 0.5709 GB, free: 10.12 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4035, allocations: 0 / 0.5709 GB, free: 10.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.4333, allocations: 5.817 MB / 0.5766 GB, free: 4.406 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.84, allocations: 8 kB / 0.5766 GB, free: 4.398 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/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: 14.931101083988324]