Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008974/0.0008973, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2229/0.2229, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3754, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001396/0.3768, allocations: 486.2 kB / 0.5193 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003245/0.3801, allocations: 2.276 MB / 0.5216 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.3801, allocations: 0 / 0.5216 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.212e-05/0.3801, allocations: 1 kB / 0.5216 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-06/0.3801, allocations: 0 / 0.5216 GB, free: 1.703 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.00264/0.3828, allocations: 1.133 MB / 0.5227 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.764e-05/0.3829, allocations: 2.062 kB / 0.5227 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.034e-05/0.3829, allocations: 2.203 kB / 0.5227 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.234e-05/0.3829, allocations: 0 / 0.5227 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.359e-05/0.3829, allocations: 5.484 kB / 0.5227 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-06/0.383, allocations: 0 / 0.5227 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00157/0.3845, allocations: 0.9952 MB / 0.5236 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.3846, allocations: 0 / 0.5236 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.776e-05/0.3846, allocations: 1.312 kB / 0.5236 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006254/0.3852, allocations: 417.1 kB / 0.524 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3852, allocations: 4 kB / 0.524 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3852, allocations: 1.062 kB / 0.524 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.3852, allocations: 0 / 0.524 GB, free: 0.5742 MB / 382.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.000365/0.3856, allocations: 425.2 kB / 0.5244 GB, free: 152 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.3857, allocations: 13.12 kB / 0.5245 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.224e-05/0.3857, allocations: 2.031 kB / 0.5245 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.3858, allocations: 161.6 kB / 0.5246 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.3858, allocations: 1.438 kB / 0.5246 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.3858, allocations: 5.375 kB / 0.5246 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.652e-05/0.3859, allocations: 38.2 kB / 0.5247 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.3859, allocations: 0 / 0.5247 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.966e-06/0.3859, allocations: 0 / 0.5247 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.386, allocations: 1.156 kB / 0.5247 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.895e-05/0.386, allocations: 1.547 kB / 0.5247 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.3861, allocations: 152.1 kB / 0.5248 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.87e-05/0.3862, allocations: 17.19 kB / 0.5248 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.567e-05/0.3862, allocations: 6.375 kB / 0.5248 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-06/0.3862, allocations: 8.953 kB / 0.5248 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.3862, allocations: 66.03 kB / 0.5249 GB, free: 15.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3863, allocations: 0 / 0.5249 GB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.00017/0.3864, allocations: 69.19 kB / 0.525 GB, free: 15.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.3865, allocations: 78.72 kB / 0.525 GB, free: 15.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.195e-05/0.3865, allocations: 90.38 kB / 0.5251 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.3866, allocations: 26.89 kB / 0.5252 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.632e-05/0.3866, allocations: 80.14 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.3866, allocations: 1.188 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.3867, allocations: 11.7 kB / 0.5252 GB, free: 15.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3868, allocations: 312.7 kB / 0.5255 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-06/0.3868, allocations: 5.312 kB / 0.5255 GB, free: 14.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.504e-06/0.3868, allocations: 9.719 kB / 0.5256 GB, free: 14.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.674e-05/0.3869, allocations: 64.12 kB / 0.5256 GB, free: 14.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3869, allocations: 1.094 kB / 0.5256 GB, free: 14.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.181e-05/0.3869, allocations: 59.08 kB / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.387, allocations: 40.34 kB / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.387, allocations: 0 / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.387, allocations: 0 / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.363e-06/0.387, allocations: 0.7031 kB / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.387, allocations: 5.75 kB / 0.5257 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.484e-05/0.3871, allocations: 0 / 0.5257 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.896e-06/0.3871, allocations: 1.859 kB / 0.5257 GB, free: 14.7 MB / 398.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.015e-05/0.3872, allocations: 137.8 kB / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.3872, allocations: 6.234 kB / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.205e-05/0.3872, allocations: 11.58 kB / 0.5259 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.3872, allocations: 0 / 0.5259 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3872, allocations: 6 kB / 0.5259 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.3872, allocations: 4 kB / 0.5259 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.3873, allocations: 148.8 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3873, allocations: 0 / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.174e-06/0.3873, allocations: 1.812 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3873, allocations: 3.938 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.3874, allocations: 1.312 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3874, allocations: 0.7031 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3874, allocations: 0 / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.616e-05/0.3875, allocations: 93.38 kB / 0.5261 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.43e-05/0.3875, allocations: 77.86 kB / 0.5262 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.3875, allocations: 5.719 kB / 0.5262 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.022e-05/0.3875, allocations: 1.781 kB / 0.5262 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-06/0.3876, allocations: 0 / 0.5262 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.3876, allocations: 6.625 kB / 0.5262 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.463e-05/0.3876, allocations: 75.28 kB / 0.5263 GB, free: 14.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.3876, allocations: 0 / 0.5263 GB, free: 14.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00044/0.3881, allocations: 145.2 kB / 0.5264 GB, free: 14.02 MB / 398.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.0006642/0.3887, allocations: 372 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.3888, allocations: 61.52 kB / 0.5268 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3888, allocations: 0 / 0.5268 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.165e-05/0.3889, allocations: 59.56 kB / 0.5269 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.389, allocations: 2.75 kB / 0.5269 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001529/0.3892, allocations: 73.78 kB / 0.527 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.3894, allocations: 0.6749 MB / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.57e-06/0.3894, allocations: 0 / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.101e-05/0.3895, allocations: 8.812 kB / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3895, allocations: 0 / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of Templates: time 0.008621/0.3981, allocations: 4.299 MB / 0.5318 GB, free: 10.86 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches