Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 192.2 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 229.5 MB / 247.7 MB, free: 6.305 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007452/0.0007455, allocations: 92.83 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.341/0.341, allocations: 45.01 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002593, allocations: 11.98 kB / 470.8 MB, free: 7.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3187, allocations: 63.09 MB / 0.5214 GB, free: 38.59 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005436/0.3193, allocations: 201.1 kB / 0.5216 GB, free: 38.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003064/0.3224, allocations: 4.871 MB / 0.5263 GB, free: 33.72 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.299e-05/0.3224, allocations: 0 / 0.5263 GB, free: 33.72 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.119e-05/0.3224, allocations: 0 / 0.5263 GB, free: 33.72 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.239e-06/0.3225, allocations: 0 / 0.5263 GB, free: 33.72 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.002169/0.3246, allocations: 1.778 MB / 0.528 GB, free: 32.21 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.131e-05/0.3247, allocations: 6.875 kB / 0.5281 GB, free: 32.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.741e-05/0.3247, allocations: 0 / 0.5281 GB, free: 32.2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.3247, allocations: 0 / 0.5281 GB, free: 32.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.4e-05/0.3248, allocations: 2.688 kB / 0.5281 GB, free: 32.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.3248, allocations: 3.938 kB / 0.5281 GB, free: 32.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.326, allocations: 0.9652 MB / 0.529 GB, free: 31.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.428e-06/0.326, allocations: 0 / 0.529 GB, free: 31.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.661e-05/0.326, allocations: 36.45 kB / 0.529 GB, free: 31.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004642/0.3265, allocations: 442.3 kB / 0.5295 GB, free: 31.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3265, allocations: 0 / 0.5295 GB, free: 31.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3265, allocations: 0 / 0.5295 GB, free: 31.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.3265, allocations: 0 / 0.5295 GB, free: 31.71 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.0003012/0.3268, allocations: 434.5 kB / 0.5299 GB, free: 31.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.3269, allocations: 12.38 kB / 0.5299 GB, free: 31.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.3269, allocations: 0.9375 kB / 0.5299 GB, free: 31.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.448e-05/0.3269, allocations: 164.3 kB / 0.53 GB, free: 31.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.327, allocations: 384 / 0.53 GB, free: 31.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-06/0.327, allocations: 384 / 0.53 GB, free: 31.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.922e-05/0.3271, allocations: 45.33 kB / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.3271, allocations: 0 / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.3271, allocations: 0 / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3271, allocations: 3.984 kB / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.437e-05/0.3271, allocations: 3.938 kB / 0.5301 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.938e-05/0.3272, allocations: 141.7 kB / 0.5302 GB, free: 30.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.174e-05/0.3272, allocations: 18.52 kB / 0.5302 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.326e-05/0.3272, allocations: 16.08 kB / 0.5303 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-06/0.3273, allocations: 0 / 0.5303 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.3273, allocations: 64.2 kB / 0.5303 GB, free: 30.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.3273, allocations: 0 / 0.5303 GB, free: 30.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001348/0.3274, allocations: 63.27 kB / 0.5304 GB, free: 30.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.3275, allocations: 81.05 kB / 0.5305 GB, free: 30.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.927e-05/0.3275, allocations: 89.86 kB / 0.5305 GB, free: 30.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.731e-06/0.3275, allocations: 25.7 kB / 0.5306 GB, free: 30.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.03e-05/0.3275, allocations: 84.27 kB / 0.5306 GB, free: 30.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.3275, allocations: 6.953 kB / 0.5307 GB, free: 30.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-06/0.3275, allocations: 3.938 kB / 0.5307 GB, free: 30.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.667e-05/0.3276, allocations: 314.8 kB / 0.531 GB, free: 30.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.743e-06/0.3276, allocations: 0 / 0.531 GB, free: 30.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.449e-06/0.3276, allocations: 2.906 kB / 0.531 GB, free: 30.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.742e-05/0.3277, allocations: 62.48 kB / 0.531 GB, free: 29.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3277, allocations: 0 / 0.531 GB, free: 29.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.437e-05/0.3277, allocations: 61.16 kB / 0.5311 GB, free: 29.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.3277, allocations: 39.39 kB / 0.5311 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3277, allocations: 0 / 0.5311 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.3278, allocations: 3.031 kB / 0.5311 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.884e-06/0.3278, allocations: 3.469 kB / 0.5311 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.3278, allocations: 3.938 kB / 0.5311 GB, free: 29.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.239e-05/0.3278, allocations: 3.938 kB / 0.5311 GB, free: 29.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.3278, allocations: 0 / 0.5311 GB, free: 29.85 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 5.274e-05/0.3279, allocations: 141.5 kB / 0.5313 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.312e-06/0.3279, allocations: 3.938 kB / 0.5313 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.104e-06/0.3279, allocations: 6.719 kB / 0.5313 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3279, allocations: 2.938 kB / 0.5313 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3279, allocations: 0 / 0.5313 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3279, allocations: 0 / 0.5313 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.262e-05/0.328, allocations: 149.3 kB / 0.5314 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.328, allocations: 3.719 kB / 0.5314 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.328, allocations: 0 / 0.5314 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.328, allocations: 3.938 kB / 0.5314 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.328, allocations: 0 / 0.5314 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.328, allocations: 4 kB / 0.5314 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.328, allocations: 0 / 0.5314 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.547e-05/0.3281, allocations: 89.88 kB / 0.5315 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.369e-05/0.3281, allocations: 77.11 kB / 0.5316 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.3281, allocations: 10.11 kB / 0.5316 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.855e-06/0.3281, allocations: 0 / 0.5316 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.3281, allocations: 11.88 kB / 0.5316 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-06/0.3282, allocations: 4.031 kB / 0.5316 GB, free: 29.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.185e-05/0.3282, allocations: 75.28 kB / 0.5317 GB, free: 29.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3282, allocations: 2.812 kB / 0.5317 GB, free: 29.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003597/0.3285, allocations: 155.5 kB / 0.5318 GB, free: 29.17 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.0006344/0.3292, allocations: 386.6 kB / 0.5322 GB, free: 29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.773e-05/0.3293, allocations: 59.94 kB / 0.5323 GB, free: 28.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3293, allocations: 0 / 0.5323 GB, free: 28.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.125e-05/0.3293, allocations: 58 kB / 0.5323 GB, free: 28.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001145/0.3294, allocations: 6.562 kB / 0.5323 GB, free: 28.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001658/0.3296, allocations: 79.47 kB / 0.5324 GB, free: 28.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.3297, allocations: 0.6722 MB / 0.5331 GB, free: 28.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.019e-06/0.3297, allocations: 0 / 0.5331 GB, free: 28.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.195e-06/0.3297, allocations: 7.438 kB / 0.5331 GB, free: 28.06 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.3297, allocations: 3.938 kB / 0.5331 GB, free: 28.06 MB / 378.7 MB Notification: Performance of Templates: time 0.007299/0.337, allocations: 4.6 MB / 0.5376 GB, free: 27.57 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches