Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001619/0.001619, allocations: 197.6 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007963/0.0007964, allocations: 98.5 kB / 299.9 MB, free: 5.367 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3065/0.3065, allocations: 45.01 MB / 397 MB, free: 31.49 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002753, allocations: 8 kB / 470.8 MB, free: 7.133 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3165, allocations: 63.1 MB / 0.5214 GB, free: 38.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005219/0.317, allocations: 197.3 kB / 0.5215 GB, free: 38.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.32, allocations: 4.87 MB / 0.5263 GB, free: 33.69 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.156e-05/0.32, allocations: 0 / 0.5263 GB, free: 33.69 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.864e-05/0.32, allocations: 2.906 kB / 0.5263 GB, free: 33.69 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.32, allocations: 3.938 kB / 0.5263 GB, free: 33.69 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.00209/0.3221, allocations: 1.778 MB / 0.528 GB, free: 32.17 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.954e-05/0.3222, allocations: 3.984 kB / 0.5281 GB, free: 32.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.74e-05/0.3222, allocations: 6.234 kB / 0.5281 GB, free: 32.17 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.542e-05/0.3222, allocations: 0 / 0.5281 GB, free: 32.17 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.028e-05/0.3223, allocations: 0 / 0.5281 GB, free: 32.17 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-06/0.3223, allocations: 0 / 0.5281 GB, free: 32.17 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.3235, allocations: 0.9732 MB / 0.529 GB, free: 31.88 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.3235, allocations: 3.938 kB / 0.529 GB, free: 31.88 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.939e-05/0.3236, allocations: 25.7 kB / 0.529 GB, free: 31.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004581/0.324, allocations: 439 kB / 0.5295 GB, free: 31.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.324, allocations: 0 / 0.5295 GB, free: 31.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.324, allocations: 0 / 0.5295 GB, free: 31.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.3241, allocations: 0 / 0.5295 GB, free: 31.68 MB / 378.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.0003017/0.3244, allocations: 440 kB / 0.5299 GB, free: 31.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.3244, allocations: 8.906 kB / 0.5299 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.3244, allocations: 8 kB / 0.5299 GB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.612e-05/0.3245, allocations: 167.8 kB / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.3245, allocations: 384 / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.3245, allocations: 384 / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.648e-05/0.3246, allocations: 33.02 kB / 0.5301 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.3246, allocations: 0 / 0.5301 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.3247, allocations: 0 / 0.5301 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3247, allocations: 0 / 0.5301 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.623e-05/0.3247, allocations: 2.938 kB / 0.5301 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.284e-05/0.3248, allocations: 149 kB / 0.5302 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.251e-05/0.3248, allocations: 25.33 kB / 0.5303 GB, free: 30.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.166e-05/0.3248, allocations: 4.859 kB / 0.5303 GB, free: 30.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.3249, allocations: 6.703 kB / 0.5303 GB, free: 30.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.3249, allocations: 60.2 kB / 0.5303 GB, free: 30.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.014e-06/0.3249, allocations: 0 / 0.5303 GB, free: 30.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.3251, allocations: 68.73 kB / 0.5304 GB, free: 30.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.557e-05/0.3251, allocations: 81.14 kB / 0.5305 GB, free: 30.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.823e-05/0.3251, allocations: 97.8 kB / 0.5306 GB, free: 30.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-06/0.3251, allocations: 25.7 kB / 0.5306 GB, free: 30.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.07e-05/0.3251, allocations: 80.14 kB / 0.5307 GB, free: 30.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.3252, allocations: 3.938 kB / 0.5307 GB, free: 30.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-06/0.3252, allocations: 0 / 0.5307 GB, free: 30.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.295e-05/0.3252, allocations: 318.2 kB / 0.531 GB, free: 30 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-06/0.3252, allocations: 0 / 0.531 GB, free: 30 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.108e-06/0.3252, allocations: 4 kB / 0.531 GB, free: 30 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.922e-05/0.3253, allocations: 59.17 kB / 0.531 GB, free: 29.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.3253, allocations: 0 / 0.531 GB, free: 29.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.666e-05/0.3253, allocations: 64.58 kB / 0.5311 GB, free: 29.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.3254, allocations: 35.11 kB / 0.5311 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.3254, allocations: 2.812 kB / 0.5311 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.3254, allocations: 0 / 0.5311 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.3254, allocations: 0 / 0.5311 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3254, allocations: 3.938 kB / 0.5311 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.488e-05/0.3254, allocations: 4.094 kB / 0.5311 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.3254, allocations: 2.75 kB / 0.5311 GB, free: 29.82 MB / 378.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 4.724e-05/0.3255, allocations: 135 kB / 0.5313 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.642e-06/0.3255, allocations: 6.75 kB / 0.5313 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.024e-06/0.3255, allocations: 6.719 kB / 0.5313 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.22e-07/0.3255, allocations: 0 / 0.5313 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3255, allocations: 0 / 0.5313 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3255, allocations: 0 / 0.5313 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.613e-05/0.3256, allocations: 152.1 kB / 0.5314 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3256, allocations: 8 kB / 0.5314 GB, free: 29.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3256, allocations: 0 / 0.5314 GB, free: 29.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.3256, allocations: 3.938 kB / 0.5314 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.3256, allocations: 3 kB / 0.5314 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.3256, allocations: 0 / 0.5314 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3256, allocations: 0 / 0.5314 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.984e-05/0.3257, allocations: 87.36 kB / 0.5315 GB, free: 29.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.444e-05/0.3257, allocations: 80.14 kB / 0.5316 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.3257, allocations: 7.969 kB / 0.5316 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.3257, allocations: 3.938 kB / 0.5316 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.3258, allocations: 6.781 kB / 0.5316 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.3258, allocations: 0 / 0.5316 GB, free: 29.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.166e-05/0.3258, allocations: 75.28 kB / 0.5317 GB, free: 29.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3258, allocations: 0 / 0.5317 GB, free: 29.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003751/0.3262, allocations: 160.8 kB / 0.5318 GB, free: 29.14 MB / 378.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.0006198/0.3268, allocations: 391.7 kB / 0.5322 GB, free: 28.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.136e-05/0.3269, allocations: 58.31 kB / 0.5323 GB, free: 28.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3269, allocations: 8 kB / 0.5323 GB, free: 28.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.234e-05/0.3269, allocations: 60.09 kB / 0.5323 GB, free: 28.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001124/0.327, allocations: 0 / 0.5323 GB, free: 28.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001453/0.3272, allocations: 80.7 kB / 0.5324 GB, free: 28.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.591e-05/0.3273, allocations: 0.6723 MB / 0.5331 GB, free: 28.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.671e-06/0.3273, allocations: 0 / 0.5331 GB, free: 28.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.113e-06/0.3273, allocations: 11.38 kB / 0.5331 GB, free: 28.02 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3273, allocations: 0 / 0.5331 GB, free: 28.02 MB / 378.7 MB Notification: Performance of Templates: time 0.006956/0.3343, allocations: 4.597 MB / 0.5376 GB, free: 27.53 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches