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.001447/0.001447, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001614/0.001614, allocations: 161.7 kB / 24.26 MB, free: 172 kB / 18.57 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.499/1.499, allocations: 177.1 MB / 204.6 MB, free: 5.574 MB / 186.7 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.3281/0.3281, allocations: 34.26 MB / 295.3 MB, free: 0.6758 MB / 266.7 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: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 377.2 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.575e-05/2.715e-05, allocations: 5.688 kB / 377.2 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001561/0.001588, allocations: 477.1 kB / 377.7 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004081/0.005669, allocations: 2.299 MB / 380 MB, free: 200 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.612e-05/0.005695, allocations: 0 / 380 MB, free: 200 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.079e-05/0.005706, allocations: 3.938 kB / 380 MB, free: 196 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.005712, allocations: 0 / 380 MB, free: 196 kB / 346.7 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.002876/0.008588, allocations: 1.105 MB / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 3.926e-05/0.008627, allocations: 0 / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.487e-05/0.008662, allocations: 4 kB / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.495e-05/0.008687, allocations: 3.984 kB / 381.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.09e-05/0.008708, allocations: 0 / 381.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.472e-06/0.008714, allocations: 0 / 381.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.01038, allocations: 0.9792 MB / 382.1 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-06/0.01039, allocations: 3.938 kB / 382.1 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.01042, allocations: 8 kB / 382.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007786/0.0112, allocations: 0.5299 MB / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.0112, allocations: 0 / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.0112, allocations: 0 / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.0112, allocations: 0 / 382.7 MB, free: 13.55 MB / 362.7 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.0007032/0.01191, allocations: 367.2 kB / 383 MB, free: 13.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.01194, allocations: 12.03 kB / 383 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.955e-05/0.01198, allocations: 4.938 kB / 383 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.01209, allocations: 101.8 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.0121, allocations: 384 / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.054e-06/0.01211, allocations: 4.375 kB / 383.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.01221, allocations: 59.95 kB / 383.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.01222, allocations: 4.188 kB / 383.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.01222, allocations: 4.312 kB / 383.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.01223, allocations: 7.922 kB / 383.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.378e-05/0.01227, allocations: 25.7 kB / 383.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.01239, allocations: 101.3 kB / 383.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.246e-05/0.01245, allocations: 40.28 kB / 383.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.779e-05/0.01249, allocations: 42.66 kB / 383.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.0125, allocations: 3.984 kB / 383.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.01256, allocations: 56.27 kB / 383.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.01256, allocations: 0 / 383.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002163/0.01278, allocations: 114.8 kB / 383.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.01285, allocations: 89.03 kB / 383.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.456e-05/0.01291, allocations: 93.86 kB / 383.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.01293, allocations: 25.7 kB / 383.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.01299, allocations: 80.14 kB / 383.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.013, allocations: 4.125 kB / 383.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.01303, allocations: 13.72 kB / 383.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.01321, allocations: 310.8 kB / 384.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.599e-05/0.01323, allocations: 25.7 kB / 384.2 MB, free: 11.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.784e-05/0.01326, allocations: 29.7 kB / 384.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.046e-05/0.01333, allocations: 68.25 kB / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.01333, allocations: 0 / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.974e-05/0.01343, allocations: 89.05 kB / 384.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/0.01347, allocations: 31.73 kB / 384.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.01347, allocations: 96 / 384.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.01349, allocations: 4 kB / 384.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.01349, allocations: 0 / 384.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.0135, allocations: 7.922 kB / 384.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.37e-05/0.01351, allocations: 4 kB / 384.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.01352, allocations: 0 / 384.4 MB, free: 11.49 MB / 362.7 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.0001112/0.01363, allocations: 139.5 kB / 384.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.01364, allocations: 3.953 kB / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.833e-06/0.01365, allocations: 3 kB / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.01365, allocations: 0 / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.01365, allocations: 0 / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.01366, allocations: 7.938 kB / 384.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.844e-05/0.01376, allocations: 109.3 kB / 384.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.01376, allocations: 3.938 kB / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.01376, allocations: 0 / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.01376, allocations: 0 / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-06/0.01376, allocations: 0 / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.01377, allocations: 4 kB / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.01377, allocations: 0 / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.01392, allocations: 124.4 kB / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-06/0.01392, allocations: 0 / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.01393, allocations: 4.031 kB / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.17e-05/0.01395, allocations: 4 kB / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.01396, allocations: 0 / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.01396, allocations: 0 / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.262e-05/0.01401, allocations: 79.22 kB / 384.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01402, allocations: 0 / 384.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004775/0.01449, allocations: 163.5 kB / 385.1 MB, free: 10.78 MB / 362.7 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.0008511/0.01534, allocations: 417.3 kB / 385.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.01548, allocations: 110.8 kB / 385.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.01549, allocations: 0 / 385.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.188e-05/0.01555, allocations: 85.05 kB / 385.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.01568, allocations: 12.05 kB / 385.7 MB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002344/0.01592, allocations: 108 kB / 385.8 MB, free: 9.984 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.524e-05/0.01597, allocations: 51.36 kB / 385.8 MB, free: 9.914 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.179e-06/0.01598, allocations: 4 kB / 385.8 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.505e-05/0.01599, allocations: 8.5 kB / 385.8 MB, free: 9.902 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01599, allocations: 0 / 385.8 MB, free: 9.902 MB / 362.7 MB Notification: Performance of Templates: time 0.009848/0.02584, allocations: 4.723 MB / 390.6 MB, free: 5.176 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/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: 4.950906644924544]