Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009287/0.0009287, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.7 MB / 246.8 MB, free: 9.617 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1892/0.1892, allocations: 46.19 MB / 345.2 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.0002636, allocations: 8.281 kB / 419.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09293, allocations: 63.55 MB / 483.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0004974/0.09345, allocations: 198.9 kB / 483.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00313/0.0966, allocations: 2.431 MB / 485.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.005e-05/0.09663, allocations: 4 kB / 485.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.011e-05/0.09665, allocations: 3.938 kB / 485.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.848e-06/0.09666, allocations: 0 / 485.8 MB, free: 1.363 MB / 350.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.002198/0.09887, allocations: 1.036 MB / 486.8 MB, free: 336 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.85e-05/0.0989, allocations: 4 kB / 486.8 MB, free: 332 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.796e-05/0.09894, allocations: 3.938 kB / 486.8 MB, free: 328 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.225e-05/0.09896, allocations: 0 / 486.8 MB, free: 328 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.848e-05/0.09898, allocations: 0 / 486.8 MB, free: 328 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.332e-06/0.09899, allocations: 7.922 kB / 486.8 MB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00145/0.1004, allocations: 0.999 MB / 487.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.1005, allocations: 8 kB / 487.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.554e-05/0.1005, allocations: 25.7 kB / 487.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006043/0.1011, allocations: 443.3 kB / 488.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1011, allocations: 0 / 488.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1011, allocations: 3.938 kB / 488.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.1011, allocations: 0 / 488.3 MB, free: 14.84 MB / 366.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.0003827/0.1015, allocations: 433.5 kB / 488.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1016, allocations: 12.88 kB / 488.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.827e-05/0.1016, allocations: 34.75 kB / 488.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.862e-05/0.1016, allocations: 0.9375 kB / 488.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.06e-05/0.1017, allocations: 168.4 kB / 488.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.1017, allocations: 384 / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-06/0.1017, allocations: 384 / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.842e-05/0.1018, allocations: 33.83 kB / 489 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-06/0.1018, allocations: 0 / 489 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.1018, allocations: 0 / 489 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1018, allocations: 0 / 489 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.751e-05/0.1019, allocations: 7.938 kB / 489 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001095/0.102, allocations: 149.7 kB / 489.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.343e-05/0.102, allocations: 18.58 kB / 489.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.09e-05/0.1021, allocations: 12.89 kB / 489.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-06/0.1021, allocations: 0 / 489.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.1021, allocations: 60.2 kB / 489.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1021, allocations: 0 / 489.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001379/0.1023, allocations: 75.31 kB / 489.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.1023, allocations: 81.23 kB / 489.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.103e-05/0.1023, allocations: 89.86 kB / 489.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.758e-06/0.1024, allocations: 25.7 kB / 489.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.88e-05/0.1024, allocations: 84.14 kB / 489.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.1024, allocations: 0 / 489.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-05/0.1024, allocations: 9.719 kB / 489.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.909e-05/0.1025, allocations: 314.8 kB / 489.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-06/0.1025, allocations: 0 / 489.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.051e-06/0.1026, allocations: 4 kB / 489.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.019e-05/0.1026, allocations: 64.31 kB / 490 MB, free: 12.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1026, allocations: 0 / 490 MB, free: 12.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.53e-05/0.1027, allocations: 63.34 kB / 490 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.1027, allocations: 41.58 kB / 490.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1027, allocations: 0 / 490.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.907e-06/0.1027, allocations: 0 / 490.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1027, allocations: 0 / 490.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1028, allocations: 3.984 kB / 490.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.355e-05/0.1028, allocations: 0 / 490.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1028, allocations: 8.031 kB / 490.1 MB, free: 12.8 MB / 366.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 6.784e-05/0.1029, allocations: 135.5 kB / 490.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.396e-06/0.1029, allocations: 3.938 kB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.963e-06/0.1029, allocations: 3.125 kB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1029, allocations: 0 / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1029, allocations: 4 kB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1029, allocations: 0 / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.341e-05/0.103, allocations: 149.6 kB / 490.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.103, allocations: 0 / 490.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.103, allocations: 4 kB / 490.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.103, allocations: 3.938 kB / 490.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.103, allocations: 4 kB / 490.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.103, allocations: 0 / 490.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.103, allocations: 3.938 kB / 490.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.934e-05/0.1031, allocations: 90.77 kB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.824e-05/0.1032, allocations: 85.05 kB / 490.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1032, allocations: 3.984 kB / 490.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-06/0.1032, allocations: 8.031 kB / 490.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.014e-05/0.1032, allocations: 0 / 490.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.1032, allocations: 4 kB / 490.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.782e-05/0.1033, allocations: 79.28 kB / 490.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1033, allocations: 0 / 490.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004232/0.1037, allocations: 152 kB / 490.8 MB, free: 11.97 MB / 366.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.0008875/0.1046, allocations: 0.9048 MB / 491.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.656e-05/0.1047, allocations: 67.33 kB / 491.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1047, allocations: 0 / 491.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.643e-05/0.1047, allocations: 55.41 kB / 491.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001109/0.1048, allocations: 6.344 kB / 491.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003274/0.1052, allocations: 180.2 kB / 492 MB, free: 10.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.1054, allocations: 0.6692 MB / 492.7 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.1054, allocations: 0 / 492.7 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.287e-05/0.1054, allocations: 15.56 kB / 492.7 MB, free: 9.961 MB / 366.1 MB Notification: Performance of SimCode: time 1.563e-06/0.1054, allocations: 0 / 492.7 MB, free: 9.961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2449/0.3503, allocations: 5.443 MB / 498.1 MB, free: 4.637 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/0.3506, allocations: 242.8 kB / 498.4 MB, free: 4.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.224, allocations: 0 / 498.4 MB, free: 4.379 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches