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.001427/0.001427, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001623/0.001623, allocations: 213.7 kB / 24.5 MB, free: 4.148 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.346/1.346, allocations: 230.5 MB / 258.1 MB, free: 8.008 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.2088/0.2088, allocations: 46.93 MB / 361.5 MB, free: 4.191 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: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002217/0.002217, allocations: 80.06 kB / 0.4974 GB, free: 7.285 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.268, allocations: 66.07 MB / 0.5619 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0015/0.2695, allocations: 473 kB / 0.5624 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.2729, allocations: 2.458 MB / 0.5648 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.28e-05/0.2729, allocations: 0 / 0.5648 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.369e-05/0.2729, allocations: 0 / 0.5648 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.95e-06/0.2729, allocations: 4 kB / 0.5648 GB, free: 1.457 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.002484/0.2754, allocations: 1.156 MB / 0.5659 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.082e-05/0.2755, allocations: 0 / 0.5659 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.194e-05/0.2755, allocations: 8 kB / 0.5659 GB, free: 300 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.579e-05/0.2755, allocations: 7.938 kB / 0.5659 GB, free: 292 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.58e-05/0.2755, allocations: 0 / 0.5659 GB, free: 292 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.2755, allocations: 0 / 0.5659 GB, free: 292 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.277, allocations: 1.034 MB / 0.5669 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-06/0.2771, allocations: 0 / 0.5669 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.919e-05/0.2771, allocations: 7.984 kB / 0.5669 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005595/0.2776, allocations: 449.7 kB / 0.5674 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2776, allocations: 0 / 0.5674 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2776, allocations: 0 / 0.5674 GB, free: 14.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.2776, allocations: 4 kB / 0.5674 GB, free: 14.8 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.0004192/0.2781, allocations: 367.3 kB / 0.5677 GB, free: 14.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2781, allocations: 8.031 kB / 0.5677 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.402e-05/0.2781, allocations: 0.9375 kB / 0.5677 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.61e-05/0.2782, allocations: 102.5 kB / 0.5678 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.355e-06/0.2782, allocations: 8.359 kB / 0.5678 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.2782, allocations: 384 / 0.5678 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.421e-05/0.2783, allocations: 30.02 kB / 0.5679 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.2783, allocations: 7.938 kB / 0.5679 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.2783, allocations: 7.938 kB / 0.5679 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-06/0.2783, allocations: 0 / 0.5679 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.379e-05/0.2783, allocations: 0 / 0.5679 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001233/0.2784, allocations: 120.7 kB / 0.568 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.955e-05/0.2785, allocations: 22.59 kB / 0.568 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.381e-05/0.2785, allocations: 4.859 kB / 0.568 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-06/0.2785, allocations: 0 / 0.568 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/0.2785, allocations: 68.27 kB / 0.5681 GB, free: 13.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.2785, allocations: 0 / 0.5681 GB, free: 13.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001469/0.2787, allocations: 67.34 kB / 0.5682 GB, free: 13.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.2787, allocations: 81.09 kB / 0.5682 GB, free: 13.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.331e-05/0.2788, allocations: 93.81 kB / 0.5683 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.2788, allocations: 25.7 kB / 0.5683 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.106e-05/0.2788, allocations: 80.14 kB / 0.5684 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.679e-05/0.2789, allocations: 4.062 kB / 0.5684 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.663e-05/0.2789, allocations: 17.72 kB / 0.5684 GB, free: 13.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.279, allocations: 310.8 kB / 0.5687 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.075e-06/0.279, allocations: 0 / 0.5687 GB, free: 13.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.023e-06/0.279, allocations: 4 kB / 0.5687 GB, free: 13.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.649e-05/0.2791, allocations: 60.27 kB / 0.5688 GB, free: 13.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2791, allocations: 0 / 0.5688 GB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.962e-05/0.2792, allocations: 67.33 kB / 0.5689 GB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.2792, allocations: 41.73 kB / 0.5689 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.2792, allocations: 3.984 kB / 0.5689 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.2792, allocations: 0 / 0.5689 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-07/0.2792, allocations: 0 / 0.5689 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.2792, allocations: 0 / 0.5689 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.293e-05/0.2792, allocations: 0 / 0.5689 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.2792, allocations: 0 / 0.5689 GB, free: 13 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 8.829e-05/0.2793, allocations: 144.8 kB / 0.569 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.929e-06/0.2793, allocations: 3.938 kB / 0.569 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.087e-05/0.2793, allocations: 10.98 kB / 0.5691 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.2793, allocations: 0 / 0.5691 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2793, allocations: 0 / 0.5691 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.2793, allocations: 4 kB / 0.5691 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.129e-05/0.2794, allocations: 116.8 kB / 0.5692 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2794, allocations: 7.938 kB / 0.5692 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.2794, allocations: 0 / 0.5692 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2794, allocations: 3.938 kB / 0.5692 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.2794, allocations: 4 kB / 0.5692 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.2795, allocations: 0 / 0.5692 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.2795, allocations: 3.938 kB / 0.5692 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/0.2796, allocations: 102.8 kB / 0.5693 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-06/0.2796, allocations: 0 / 0.5693 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.2796, allocations: 3.938 kB / 0.5693 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.684e-06/0.2796, allocations: 0 / 0.5693 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.258e-05/0.2796, allocations: 0 / 0.5693 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.2796, allocations: 4 kB / 0.5693 GB, free: 12.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.965e-05/0.2796, allocations: 75.28 kB / 0.5694 GB, free: 12.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2796, allocations: 4.031 kB / 0.5694 GB, free: 12.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004122/0.28, allocations: 159.5 kB / 0.5695 GB, free: 12.28 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.0006629/0.2807, allocations: 386.2 kB / 0.5699 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.2808, allocations: 59.41 kB / 0.5699 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.2808, allocations: 0 / 0.5699 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.931e-05/0.2808, allocations: 63.33 kB / 0.57 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000109/0.281, allocations: 0 / 0.57 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001762/0.2811, allocations: 106.7 kB / 0.5701 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.2814, allocations: 0.673 MB / 0.5708 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.118e-05/0.2814, allocations: 11.44 kB / 0.5708 GB, free: 10.9 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2814, allocations: 0 / 0.5708 GB, free: 10.9 MB / 414.1 MB Notification: Performance of Templates: time 0.00601/0.2874, allocations: 3.928 MB / 0.5746 GB, free: 6.969 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] 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: 6.691203437047079]