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.001106/0.001106, allocations: 110.6 kB / 18.45 MB, free: 4.645 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.001193/0.001193, allocations: 185.2 kB / 19.38 MB, free: 3.723 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.335/1.335, allocations: 222.9 MB / 243.1 MB, free: 15.04 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.2016/0.2016, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 471.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3049, allocations: 60.82 MB / 0.5195 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001556/0.3065, allocations: 491.9 kB / 0.52 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002913/0.3094, allocations: 2.276 MB / 0.5222 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.448e-05/0.3095, allocations: 0 / 0.5222 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.3095, allocations: 0 / 0.5222 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.3095, allocations: 0 / 0.5222 GB, free: 1.969 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.0026/0.3121, allocations: 1.133 MB / 0.5233 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.302e-05/0.3122, allocations: 1.094 kB / 0.5233 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.734e-05/0.3122, allocations: 1.922 kB / 0.5233 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.408e-05/0.3122, allocations: 1.891 kB / 0.5233 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.948e-05/0.3123, allocations: 5.172 kB / 0.5233 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.54e-06/0.3123, allocations: 0 / 0.5233 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.3139, allocations: 0.9952 MB / 0.5243 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.866e-06/0.3139, allocations: 0 / 0.5243 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.071e-05/0.3139, allocations: 1.031 kB / 0.5243 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005734/0.3145, allocations: 418.7 kB / 0.5247 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3145, allocations: 0 / 0.5247 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.3145, allocations: 0 / 0.5247 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.3145, allocations: 0.6094 kB / 0.5247 GB, free: 0.8438 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.0003143/0.3148, allocations: 428.3 kB / 0.5251 GB, free: 424 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.3149, allocations: 9.156 kB / 0.5251 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.3149, allocations: 6.469 kB / 0.5251 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.358e-05/0.315, allocations: 161.8 kB / 0.5253 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.315, allocations: 384 / 0.5253 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-06/0.315, allocations: 1.781 kB / 0.5253 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.47e-05/0.3151, allocations: 42.28 kB / 0.5253 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.3151, allocations: 0 / 0.5253 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.3151, allocations: 0 / 0.5253 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3151, allocations: 0 / 0.5253 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.036e-05/0.3152, allocations: 2.297 kB / 0.5253 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001077/0.3153, allocations: 152.8 kB / 0.5255 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.815e-05/0.3153, allocations: 17.16 kB / 0.5255 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.552e-05/0.3153, allocations: 6.578 kB / 0.5255 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.3154, allocations: 4.5 kB / 0.5255 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.3154, allocations: 62.77 kB / 0.5256 GB, free: 15.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3154, allocations: 0 / 0.5256 GB, free: 15.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001669/0.3156, allocations: 72.8 kB / 0.5256 GB, free: 15.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.3156, allocations: 79.72 kB / 0.5257 GB, free: 15.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.802e-05/0.3157, allocations: 89.86 kB / 0.5258 GB, free: 15.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.3157, allocations: 25.7 kB / 0.5258 GB, free: 15.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.551e-05/0.3157, allocations: 80.66 kB / 0.5259 GB, free: 15.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.3158, allocations: 1.812 kB / 0.5259 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.969e-05/0.3158, allocations: 12.23 kB / 0.5259 GB, free: 15.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.599e-05/0.3159, allocations: 311.6 kB / 0.5262 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.079e-05/0.3159, allocations: 5.812 kB / 0.5262 GB, free: 15.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.517e-05/0.3159, allocations: 8.531 kB / 0.5262 GB, free: 15.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.535e-05/0.316, allocations: 64.64 kB / 0.5263 GB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.316, allocations: 0 / 0.5263 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.587e-05/0.3161, allocations: 60.5 kB / 0.5263 GB, free: 15.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.3161, allocations: 35.55 kB / 0.5264 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3161, allocations: 2.516 kB / 0.5264 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.3161, allocations: 0 / 0.5264 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.3161, allocations: 0 / 0.5264 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.3162, allocations: 8.094 kB / 0.5264 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.454e-05/0.3162, allocations: 2.625 kB / 0.5264 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.3162, allocations: 0 / 0.5264 GB, free: 14.97 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.221e-05/0.3163, allocations: 138.1 kB / 0.5265 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.104e-05/0.3163, allocations: 6.281 kB / 0.5265 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.129e-05/0.3163, allocations: 11.72 kB / 0.5265 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3163, allocations: 0 / 0.5265 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.3163, allocations: 1.781 kB / 0.5265 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3163, allocations: 4.641 kB / 0.5265 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.021e-05/0.3164, allocations: 151.5 kB / 0.5267 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3164, allocations: 0 / 0.5267 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.3164, allocations: 0 / 0.5267 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3164, allocations: 3.938 kB / 0.5267 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.3165, allocations: 2.344 kB / 0.5267 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3165, allocations: 0 / 0.5267 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3165, allocations: 0.5156 kB / 0.5267 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.251e-05/0.3166, allocations: 88.67 kB / 0.5268 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.3166, allocations: 83.3 kB / 0.5269 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.3166, allocations: 4.594 kB / 0.5269 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.3167, allocations: 1.375 kB / 0.5269 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.547e-05/0.3167, allocations: 4.5 kB / 0.5269 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.3167, allocations: 1.375 kB / 0.5269 GB, free: 14.4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.656e-05/0.3167, allocations: 75.8 kB / 0.5269 GB, free: 14.33 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.843e-06/0.3167, allocations: 0 / 0.5269 GB, free: 14.33 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004943/0.3172, allocations: 146 kB / 0.5271 GB, free: 14.29 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.0006472/0.3179, allocations: 364.3 kB / 0.5274 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.987e-05/0.318, allocations: 65.45 kB / 0.5275 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.318, allocations: 1.375 kB / 0.5275 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.061e-05/0.318, allocations: 58.77 kB / 0.5275 GB, free: 13.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.3181, allocations: 1.938 kB / 0.5275 GB, free: 13.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001664/0.3183, allocations: 98.97 kB / 0.5276 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.3186, allocations: 0.6754 MB / 0.5283 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.016e-05/0.3186, allocations: 8.812 kB / 0.5283 GB, free: 13.14 MB / 398.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3186, allocations: 0 / 0.5283 GB, free: 13.14 MB / 398.1 MB Notification: Performance of Templates: time 0.007126/0.3257, allocations: 3.636 MB / 0.5319 GB, free: 11.44 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches