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.001144/0.001143, allocations: 109.8 kB / 17.78 MB, free: 5.285 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.00153/0.00153, allocations: 183.9 kB / 18.7 MB, free: 4.371 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.441/1.441, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2311/0.2311, allocations: 44.19 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.477/0.4784, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001748/0.4802, allocations: 483 kB / 0.5193 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003588/0.4838, allocations: 2.284 MB / 0.5216 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.41e-05/0.4839, allocations: 0 / 0.5216 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.421e-05/0.4839, allocations: 1.094 kB / 0.5216 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.214e-06/0.4839, allocations: 0 / 0.5216 GB, free: 1.699 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.003477/0.4874, allocations: 1.132 MB / 0.5227 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.197e-05/0.4875, allocations: 2.156 kB / 0.5227 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.982e-05/0.4876, allocations: 2.172 kB / 0.5227 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.181e-05/0.4876, allocations: 0.8438 kB / 0.5227 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.675e-05/0.4876, allocations: 5 kB / 0.5227 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.003e-06/0.4876, allocations: 0 / 0.5227 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.4899, allocations: 0.9946 MB / 0.5236 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.4899, allocations: 5.344 kB / 0.5236 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.49, allocations: 3.938 kB / 0.5237 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007733/0.4908, allocations: 415.6 kB / 0.524 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4908, allocations: 0 / 0.524 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4908, allocations: 0 / 0.524 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.4908, allocations: 0 / 0.524 GB, free: 0.5703 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.0004424/0.4912, allocations: 428.7 kB / 0.5245 GB, free: 144 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.4913, allocations: 9.062 kB / 0.5245 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.4913, allocations: 2.281 kB / 0.5245 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.4915, allocations: 161.5 kB / 0.5246 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.4915, allocations: 12.77 kB / 0.5246 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.4915, allocations: 1.781 kB / 0.5246 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.4916, allocations: 37.58 kB / 0.5247 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.4916, allocations: 0 / 0.5247 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.4917, allocations: 1.438 kB / 0.5247 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4917, allocations: 0 / 0.5247 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.365e-05/0.4917, allocations: 1.484 kB / 0.5247 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.4919, allocations: 144.8 kB / 0.5248 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.924e-05/0.4919, allocations: 24.73 kB / 0.5248 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.83e-05/0.4919, allocations: 6.812 kB / 0.5248 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.492, allocations: 0 / 0.5248 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.492, allocations: 66.48 kB / 0.5249 GB, free: 15.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.492, allocations: 0 / 0.5249 GB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002076/0.4922, allocations: 62.25 kB / 0.525 GB, free: 15.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.4923, allocations: 77.72 kB / 0.525 GB, free: 15.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.586e-05/0.4924, allocations: 94.73 kB / 0.5251 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.4924, allocations: 27.08 kB / 0.5252 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.4924, allocations: 80.14 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.4925, allocations: 1.219 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.4925, allocations: 16.06 kB / 0.5252 GB, free: 15.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.4926, allocations: 312.5 kB / 0.5255 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.456e-05/0.4927, allocations: 5.125 kB / 0.5256 GB, free: 14.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.503e-06/0.4927, allocations: 1.188 kB / 0.5256 GB, free: 14.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.979e-05/0.4927, allocations: 63.58 kB / 0.5256 GB, free: 14.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4927, allocations: 1.734 kB / 0.5256 GB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000109/0.4929, allocations: 64.42 kB / 0.5257 GB, free: 14.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.4929, allocations: 35.25 kB / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.4929, allocations: 0.7969 kB / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.493, allocations: 1.219 kB / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.493, allocations: 0 / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.493, allocations: 0 / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.095e-05/0.493, allocations: 2.078 kB / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.493, allocations: 8.016 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 9.74e-05/0.4931, allocations: 144 kB / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.4931, allocations: 3.938 kB / 0.5259 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.824e-05/0.4932, allocations: 9.25 kB / 0.5259 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.4932, allocations: 4.594 kB / 0.5259 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.4932, allocations: 0 / 0.5259 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.4932, allocations: 0 / 0.5259 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.4933, allocations: 149.5 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4933, allocations: 1.469 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-06/0.4933, allocations: 8 kB / 0.526 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.4933, allocations: 3.938 kB / 0.526 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.4933, allocations: 1.906 kB / 0.526 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.4933, allocations: 0 / 0.526 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4934, allocations: 0.6562 kB / 0.526 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001192/0.4935, allocations: 94.33 kB / 0.5261 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.329e-05/0.4935, allocations: 77.91 kB / 0.5262 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.4935, allocations: 5.094 kB / 0.5262 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.041e-05/0.4936, allocations: 5.203 kB / 0.5262 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.904e-05/0.4936, allocations: 1.25 kB / 0.5262 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.4936, allocations: 5.031 kB / 0.5262 GB, free: 14.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.788e-05/0.4936, allocations: 75.28 kB / 0.5263 GB, free: 14.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4936, allocations: 0 / 0.5263 GB, free: 14.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005022/0.4941, allocations: 138 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.0007891/0.4949, allocations: 365.5 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001201/0.4951, allocations: 62.27 kB / 0.5268 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4951, allocations: 0 / 0.5268 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.896e-05/0.4951, allocations: 61.05 kB / 0.5269 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.4953, allocations: 3.875 kB / 0.5269 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002115/0.4955, allocations: 77.64 kB / 0.527 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.4957, allocations: 0.6749 MB / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.484e-06/0.4958, allocations: 5.312 kB / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.4958, allocations: 9.656 kB / 0.5276 GB, free: 12.9 MB / 398.1 MB Notification: Performance of SimCode: time 1.914e-06/0.4958, allocations: 0 / 0.5276 GB, free: 12.9 MB / 398.1 MB Notification: Performance of Templates: time 0.01095/0.5067, allocations: 4.29 MB / 0.5318 GB, free: 10.84 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