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.0008955/0.0008955, allocations: 83.69 kB / 20.67 MB, free: 3.879 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.0009694/0.0009694, allocations: 170.3 kB / 23.95 MB, free: 0.6016 MB / 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 0.9023/0.9023, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2397/0.2397, allocations: 34.25 MB / 294.9 MB, free: 0.7344 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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 442.1 MB, free: 1.707 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.271e-05/2.462e-05, allocations: 2.281 kB / 442.1 MB, free: 1.703 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001119/0.001143, allocations: 480.1 kB / 442.6 MB, free: 1.238 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2008/0.202, allocations: 2.278 MB / 444.9 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.336e-05/0.202, allocations: 2.812 kB / 444.9 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.431e-05/0.202, allocations: 0 / 444.9 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.524e-06/0.202, allocations: 0 / 444.9 MB, free: 43.1 MB / 410.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.002348/0.2044, allocations: 1.11 MB / 446 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.4e-05/0.2044, allocations: 2.906 kB / 446 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.386e-05/0.2045, allocations: 0 / 446 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.948e-05/0.2045, allocations: 0 / 446 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.416e-05/0.2046, allocations: 10.27 kB / 446 MB, free: 42.72 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.867e-06/0.2046, allocations: 0 / 446 MB, free: 42.72 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00176/0.2063, allocations: 0.9828 MB / 447 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.2064, allocations: 0 / 447 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.786e-05/0.2064, allocations: 2.406 kB / 447 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006612/0.207, allocations: 0.5316 MB / 447.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2071, allocations: 7.875 kB / 447.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.2071, allocations: 0 / 447.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2071, allocations: 4.844 kB / 447.5 MB, free: 42.34 MB / 410.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.0003416/0.2074, allocations: 363.9 kB / 447.9 MB, free: 41.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.2075, allocations: 8.625 kB / 447.9 MB, free: 41.99 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.475e-05/0.2075, allocations: 36.83 kB / 447.9 MB, free: 41.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.488e-05/0.2075, allocations: 0.9375 kB / 447.9 MB, free: 41.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.303e-05/0.2076, allocations: 101.8 kB / 448 MB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.2076, allocations: 3.781 kB / 448 MB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.2076, allocations: 2.5 kB / 448 MB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.2077, allocations: 62.38 kB / 448.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2077, allocations: 192 / 448.1 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.2077, allocations: 4.125 kB / 448.1 MB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2077, allocations: 3.234 kB / 448.1 MB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.422e-05/0.2077, allocations: 28.64 kB / 448.1 MB, free: 41.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.104e-05/0.2078, allocations: 119.6 kB / 448.3 MB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.699e-05/0.2079, allocations: 43 kB / 448.3 MB, free: 41.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.86e-05/0.2079, allocations: 37.47 kB / 448.3 MB, free: 41.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.653e-06/0.2079, allocations: 0 / 448.3 MB, free: 41.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.2079, allocations: 63.17 kB / 448.4 MB, free: 41.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.183e-06/0.2079, allocations: 4 kB / 448.4 MB, free: 41.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002053/0.2081, allocations: 122.6 kB / 448.5 MB, free: 41.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.2082, allocations: 77.11 kB / 448.6 MB, free: 41.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.769e-05/0.2082, allocations: 97.12 kB / 448.7 MB, free: 41.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.821e-06/0.2082, allocations: 25.7 kB / 448.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.256e-06/0.2082, allocations: 85.42 kB / 448.8 MB, free: 40.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.2082, allocations: 0 / 448.8 MB, free: 40.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.2082, allocations: 12.59 kB / 448.8 MB, free: 40.94 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.553e-05/0.2083, allocations: 310.8 kB / 449.1 MB, free: 40.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.345e-05/0.2083, allocations: 29.06 kB / 449.1 MB, free: 40.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.857e-06/0.2083, allocations: 32.48 kB / 449.2 MB, free: 40.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.144e-05/0.2083, allocations: 63.2 kB / 449.2 MB, free: 40.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2083, allocations: 0 / 449.2 MB, free: 40.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.517e-05/0.2084, allocations: 96.89 kB / 449.3 MB, free: 40.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.2084, allocations: 31.61 kB / 449.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2084, allocations: 0 / 449.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.2084, allocations: 3.938 kB / 449.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.2084, allocations: 0 / 449.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.2084, allocations: 3.203 kB / 449.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.173e-05/0.2085, allocations: 6.906 kB / 449.4 MB, free: 40.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.2085, allocations: 0 / 449.4 MB, free: 40.34 MB / 410.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 7.799e-05/0.2086, allocations: 141.7 kB / 449.5 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.553e-06/0.2086, allocations: 0 / 449.5 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.632e-05/0.2086, allocations: 3 kB / 449.5 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.2086, allocations: 4.734 kB / 449.5 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2086, allocations: 2.969 kB / 449.5 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2086, allocations: 0 / 449.5 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.32e-05/0.2087, allocations: 115.9 kB / 449.6 MB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2087, allocations: 2.875 kB / 449.6 MB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.2087, allocations: 4 kB / 449.6 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.2087, allocations: 1.594 kB / 449.6 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.2087, allocations: 0 / 449.6 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2087, allocations: 3.938 kB / 449.6 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2087, allocations: 0 / 449.6 MB, free: 40.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.494e-05/0.2088, allocations: 122.2 kB / 449.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-06/0.2088, allocations: 2.25 kB / 449.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.2088, allocations: 3.234 kB / 449.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.006e-05/0.2088, allocations: 7.906 kB / 449.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.2088, allocations: 0 / 449.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.2088, allocations: 4.031 kB / 449.8 MB, free: 39.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.651e-05/0.2088, allocations: 75.28 kB / 449.9 MB, free: 39.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2088, allocations: 0 / 449.9 MB, free: 39.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003999/0.2092, allocations: 161.3 kB / 450 MB, free: 39.76 MB / 410.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.0009293/0.2102, allocations: 0.9566 MB / 451 MB, free: 39.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.2103, allocations: 119.7 kB / 451.1 MB, free: 38.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2103, allocations: 2.906 kB / 451.1 MB, free: 38.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.325e-05/0.2103, allocations: 83.89 kB / 451.2 MB, free: 38.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.2104, allocations: 3.938 kB / 451.2 MB, free: 38.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000299/0.2107, allocations: 212.7 kB / 451.4 MB, free: 38.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.121e-05/0.2108, allocations: 58.36 kB / 451.4 MB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.701e-06/0.2108, allocations: 0 / 451.4 MB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.68e-05/0.2108, allocations: 11.28 kB / 451.5 MB, free: 38.51 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2108, allocations: 0 / 451.5 MB, free: 38.51 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02221/0.233, allocations: 6.39 MB / 457.8 MB, free: 37.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.872/7.105, allocations: 14.06 kB / 457.9 MB, free: 37.13 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] 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: 9.05025458149612]