Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007706/0.0007706, allocations: 107 kB / 295.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2849/0.2849, allocations: 44.82 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002393, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2625, allocations: 62.95 MB / 0.5159 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0004341/0.2629, allocations: 203 kB / 0.5161 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.2651, allocations: 2.241 MB / 0.5183 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.373e-05/0.2651, allocations: 0 / 0.5183 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.376e-06/0.2651, allocations: 2.969 kB / 0.5183 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.59e-06/0.2651, allocations: 0 / 0.5183 GB, free: 35.32 MB / 378.7 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.001557/0.2667, allocations: 0.9112 MB / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.419e-05/0.2667, allocations: 0 / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.238e-05/0.2668, allocations: 3 kB / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.411e-05/0.2668, allocations: 0 / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.913e-05/0.2668, allocations: 0 / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-06/0.2668, allocations: 4 kB / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009979/0.2678, allocations: 0.9409 MB / 0.5201 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.462e-06/0.2678, allocations: 3.031 kB / 0.5201 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.226e-05/0.2679, allocations: 25.7 kB / 0.5202 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.2682, allocations: 277.3 kB / 0.5204 GB, free: 34.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2682, allocations: 0 / 0.5204 GB, free: 34.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2682, allocations: 7.875 kB / 0.5204 GB, free: 34.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.2682, allocations: 0 / 0.5204 GB, free: 34.37 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.0002579/0.2685, allocations: 445 kB / 0.5209 GB, free: 33.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2685, allocations: 10.75 kB / 0.5209 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.896e-05/0.2685, allocations: 30.75 kB / 0.5209 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.779e-05/0.2685, allocations: 0.9375 kB / 0.5209 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.656e-05/0.2686, allocations: 166.2 kB / 0.5211 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-06/0.2686, allocations: 384 / 0.5211 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.2686, allocations: 3.219 kB / 0.5211 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.082e-05/0.2687, allocations: 37.23 kB / 0.5211 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.403e-06/0.2687, allocations: 3.031 kB / 0.5211 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.2687, allocations: 4 kB / 0.5211 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.2687, allocations: 0 / 0.5211 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.423e-05/0.2688, allocations: 3.938 kB / 0.5211 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.086e-05/0.2688, allocations: 144.5 kB / 0.5213 GB, free: 33.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.336e-05/0.2689, allocations: 21.86 kB / 0.5213 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-06/0.2689, allocations: 7.797 kB / 0.5213 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.042e-06/0.2689, allocations: 0 / 0.5213 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.2689, allocations: 64.2 kB / 0.5213 GB, free: 33.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.2689, allocations: 2.844 kB / 0.5213 GB, free: 33.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001132/0.269, allocations: 64.34 kB / 0.5214 GB, free: 33.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.2691, allocations: 81.11 kB / 0.5215 GB, free: 33.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.542e-05/0.2691, allocations: 92.77 kB / 0.5216 GB, free: 33.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.691e-06/0.2691, allocations: 25.7 kB / 0.5216 GB, free: 33.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.027e-06/0.2691, allocations: 80.14 kB / 0.5217 GB, free: 32.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.114e-05/0.2691, allocations: 0 / 0.5217 GB, free: 32.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-06/0.2691, allocations: 4.125 kB / 0.5217 GB, free: 32.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.733e-05/0.2692, allocations: 310.8 kB / 0.522 GB, free: 32.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.105e-06/0.2692, allocations: 2.969 kB / 0.522 GB, free: 32.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.848e-06/0.2692, allocations: 0 / 0.522 GB, free: 32.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.521e-05/0.2692, allocations: 66.44 kB / 0.522 GB, free: 32.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2692, allocations: 0 / 0.522 GB, free: 32.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.589e-05/0.2693, allocations: 68.03 kB / 0.5221 GB, free: 32.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2693, allocations: 42.61 kB / 0.5221 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.2693, allocations: 4.094 kB / 0.5222 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.287e-06/0.2693, allocations: 0 / 0.5222 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.2693, allocations: 0 / 0.5222 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.2693, allocations: 0 / 0.5222 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.244e-05/0.2694, allocations: 0 / 0.5222 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-06/0.2694, allocations: 2.688 kB / 0.5222 GB, free: 32.46 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/0.2694, allocations: 134.4 kB / 0.5223 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-06/0.2694, allocations: 3.938 kB / 0.5223 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.555e-06/0.2694, allocations: 10.14 kB / 0.5223 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.2695, allocations: 4 kB / 0.5223 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.2695, allocations: 0 / 0.5223 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.2695, allocations: 0 / 0.5223 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.022e-05/0.2695, allocations: 148.7 kB / 0.5224 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.2695, allocations: 0 / 0.5224 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.2695, allocations: 0 / 0.5224 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2695, allocations: 7.125 kB / 0.5224 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.2695, allocations: 2.281 kB / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.2695, allocations: 3.984 kB / 0.5225 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2695, allocations: 0 / 0.5225 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.707e-05/0.2696, allocations: 96.62 kB / 0.5225 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.275e-05/0.2696, allocations: 83.83 kB / 0.5226 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-06/0.2696, allocations: 0 / 0.5226 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.915e-06/0.2697, allocations: 0 / 0.5226 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.386e-05/0.2697, allocations: 3.094 kB / 0.5226 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.2697, allocations: 4 kB / 0.5226 GB, free: 31.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.102e-05/0.2697, allocations: 75.28 kB / 0.5227 GB, free: 31.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2697, allocations: 4.031 kB / 0.5227 GB, free: 31.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003531/0.2701, allocations: 155.5 kB / 0.5229 GB, free: 31.79 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006481/0.2707, allocations: 0.9104 MB / 0.5237 GB, free: 31.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.82e-05/0.2708, allocations: 61.34 kB / 0.5238 GB, free: 31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2708, allocations: 0 / 0.5238 GB, free: 31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.599e-05/0.2708, allocations: 54.06 kB / 0.5239 GB, free: 30.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001074/0.2709, allocations: 10.33 kB / 0.5239 GB, free: 30.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002727/0.2712, allocations: 204.1 kB / 0.5241 GB, free: 30.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.673e-05/0.2713, allocations: 0.6753 MB / 0.5247 GB, free: 30.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.697e-06/0.2713, allocations: 7.438 kB / 0.5247 GB, free: 30.03 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2713, allocations: 0 / 0.5247 GB, free: 30.03 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.69/2.961, allocations: 4.033 MB / 0.5287 GB, free: 29.59 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches