Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001245, allocations: 118.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2445/0.2445, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 71.88 kB / 481.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.425/0.4265, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001777/0.4283, allocations: 475.4 kB / 0.5314 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004485/0.4328, allocations: 2.412 MB / 0.5338 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.754e-05/0.4329, allocations: 4 kB / 0.5338 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.716e-05/0.4329, allocations: 0 / 0.5338 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.367e-06/0.4329, allocations: 0 / 0.5338 GB, free: 11.37 MB / 398.1 MB [/home/hudson/saved_omc/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.003279/0.4362, allocations: 1.145 MB / 0.5349 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.407e-05/0.4363, allocations: 1.375 kB / 0.5349 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.4363, allocations: 1.312 kB / 0.5349 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.984e-05/0.4363, allocations: 7.938 kB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.576e-05/0.4364, allocations: 1.406 kB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.214e-06/0.4364, allocations: 3.938 kB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001794/0.4382, allocations: 1.03 MB / 0.5359 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.4382, allocations: 1.219 kB / 0.5359 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.4382, allocations: 0 / 0.5359 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006527/0.4389, allocations: 452.2 kB / 0.5363 GB, free: 9.824 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4389, allocations: 0 / 0.5363 GB, free: 9.824 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4389, allocations: 0 / 0.5363 GB, free: 9.824 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.4389, allocations: 4 kB / 0.5363 GB, free: 9.82 MB / 398.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.0004827/0.4394, allocations: 439.3 kB / 0.5368 GB, free: 9.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.4395, allocations: 14.27 kB / 0.5368 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.854e-05/0.4395, allocations: 0.9375 kB / 0.5368 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.4396, allocations: 168.3 kB / 0.5369 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.4397, allocations: 1.438 kB / 0.5369 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-06/0.4397, allocations: 1.531 kB / 0.5369 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.4398, allocations: 32.3 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.4398, allocations: 0 / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.4398, allocations: 5.125 kB / 0.537 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.4398, allocations: 3.938 kB / 0.537 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.117e-05/0.4399, allocations: 5.031 kB / 0.537 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001467/0.44, allocations: 146.9 kB / 0.5371 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.081e-05/0.4401, allocations: 20.98 kB / 0.5371 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.833e-05/0.4401, allocations: 10.39 kB / 0.5372 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-06/0.4401, allocations: 0 / 0.5372 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.661e-05/0.4402, allocations: 69.11 kB / 0.5372 GB, free: 8.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.4402, allocations: 1.469 kB / 0.5372 GB, free: 8.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001884/0.4404, allocations: 66.2 kB / 0.5373 GB, free: 8.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.4404, allocations: 78.17 kB / 0.5374 GB, free: 8.645 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.044e-05/0.4405, allocations: 93.81 kB / 0.5374 GB, free: 8.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.4405, allocations: 29.7 kB / 0.5375 GB, free: 8.508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.823e-05/0.4405, allocations: 81.14 kB / 0.5376 GB, free: 8.426 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.4406, allocations: 0.9375 kB / 0.5376 GB, free: 8.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-05/0.4406, allocations: 15.94 kB / 0.5376 GB, free: 8.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4407, allocations: 310.8 kB / 0.5379 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.087e-05/0.4408, allocations: 5.016 kB / 0.5379 GB, free: 8.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.595e-06/0.4408, allocations: 2.062 kB / 0.5379 GB, free: 8.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.553e-05/0.4408, allocations: 59.3 kB / 0.5379 GB, free: 8.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4408, allocations: 0 / 0.5379 GB, free: 8.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.981e-05/0.4409, allocations: 69.81 kB / 0.538 GB, free: 7.945 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.807e-05/0.441, allocations: 43.47 kB / 0.538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.441, allocations: 1.156 kB / 0.538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.441, allocations: 0 / 0.538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.91e-07/0.441, allocations: 0 / 0.538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.441, allocations: 1.094 kB / 0.538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.441, allocations: 0 / 0.538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.4411, allocations: 1.062 kB / 0.538 GB, free: 7.902 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 0.0001075/0.4412, allocations: 133.9 kB / 0.5382 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.4412, allocations: 9.047 kB / 0.5382 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.056e-05/0.4412, allocations: 7.125 kB / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.4412, allocations: 1.156 kB / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4412, allocations: 0 / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4412, allocations: 0 / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001336/0.4414, allocations: 152 kB / 0.5383 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.4414, allocations: 0 / 0.5383 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.4414, allocations: 3.938 kB / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4414, allocations: 5.031 kB / 0.5383 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.4414, allocations: 1.125 kB / 0.5383 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4414, allocations: 0 / 0.5383 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4415, allocations: 0 / 0.5383 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.4416, allocations: 98.02 kB / 0.5384 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.918e-05/0.4417, allocations: 78.2 kB / 0.5385 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.038e-05/0.4417, allocations: 5.125 kB / 0.5385 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.552e-05/0.4417, allocations: 0 / 0.5385 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.775e-05/0.4418, allocations: 5.203 kB / 0.5385 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.4418, allocations: 1.281 kB / 0.5385 GB, free: 7.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.155e-05/0.4418, allocations: 75.28 kB / 0.5386 GB, free: 7.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4418, allocations: 4.031 kB / 0.5386 GB, free: 7.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000545/0.4424, allocations: 157.4 kB / 0.5387 GB, free: 7.199 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.0007661/0.4432, allocations: 395.9 kB / 0.5391 GB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001184/0.4433, allocations: 59.73 kB / 0.5392 GB, free: 6.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4433, allocations: 5.031 kB / 0.5392 GB, free: 6.906 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.27e-05/0.4434, allocations: 53.94 kB / 0.5392 GB, free: 6.844 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.4435, allocations: 2.844 kB / 0.5392 GB, free: 6.844 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001837/0.4437, allocations: 79.53 kB / 0.5393 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.444, allocations: 0.6743 MB / 0.54 GB, free: 6.047 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.424e-06/0.444, allocations: 4 kB / 0.54 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.39e-05/0.444, allocations: 8.781 kB / 0.54 GB, free: 6.035 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.444, allocations: 0 / 0.54 GB, free: 6.035 MB / 398.1 MB Notification: Performance of Templates: time 0.009521/0.4536, allocations: 4.599 MB / 0.5445 GB, free: 3.414 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches