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.00123/0.001231, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1887/0.1887, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 77.11 kB / 417.1 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.1012, allocations: 62.44 MB / 479.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.00169/0.1029, allocations: 0.5318 MB / 480.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003417/0.1064, allocations: 2.392 MB / 482.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.646e-05/0.1064, allocations: 3.938 kB / 482.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.1064, allocations: 0 / 482.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.479e-06/0.1064, allocations: 0 / 482.5 MB, free: 2.598 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.00252/0.109, allocations: 1.067 MB / 483.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.353e-05/0.109, allocations: 4 kB / 483.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.513e-05/0.1091, allocations: 4 kB / 483.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.28e-05/0.1091, allocations: 0 / 483.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.03e-05/0.1091, allocations: 3.938 kB / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.07e-06/0.1091, allocations: 0 / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001546/0.1107, allocations: 1.007 MB / 484.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.187e-06/0.1107, allocations: 3.984 kB / 484.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.641e-05/0.1107, allocations: 4 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006459/0.1114, allocations: 447.4 kB / 485 MB, free: 68 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1114, allocations: 0 / 485 MB, free: 68 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1114, allocations: 0 / 485 MB, free: 68 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1114, allocations: 0 / 485 MB, free: 68 kB / 350.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.0003921/0.1118, allocations: 441.4 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1118, allocations: 8.031 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.759e-05/0.1119, allocations: 34.75 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.167e-05/0.1119, allocations: 8.875 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.041e-05/0.112, allocations: 164.4 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.112, allocations: 4.375 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-06/0.112, allocations: 384 / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.716e-05/0.1121, allocations: 29.83 kB / 485.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1121, allocations: 3.984 kB / 485.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.1121, allocations: 4 kB / 485.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.1121, allocations: 0 / 485.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.444e-05/0.1121, allocations: 0 / 485.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001069/0.1123, allocations: 145.7 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.918e-05/0.1123, allocations: 34.47 kB / 485.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.307e-05/0.1123, allocations: 8.797 kB / 485.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.418e-06/0.1123, allocations: 0 / 485.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.1124, allocations: 64.2 kB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1124, allocations: 4.062 kB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001514/0.1125, allocations: 63.39 kB / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.1126, allocations: 85.05 kB / 486.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.37e-05/0.1126, allocations: 93.86 kB / 486.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.1126, allocations: 25.7 kB / 486.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.098e-05/0.1127, allocations: 80.14 kB / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.1127, allocations: 0 / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/0.1127, allocations: 13.72 kB / 486.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.1128, allocations: 310.8 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.1129, allocations: 4.125 kB / 486.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.909e-06/0.1129, allocations: 0 / 486.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.346e-05/0.1129, allocations: 68.25 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.1129, allocations: 0 / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.125e-05/0.113, allocations: 59.41 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.113, allocations: 33.64 kB / 486.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/0.1131, allocations: 0 / 486.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1131, allocations: 7.938 kB / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.1131, allocations: 0 / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.1131, allocations: 4.094 kB / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.394e-05/0.1131, allocations: 0 / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.1131, allocations: 3.984 kB / 486.8 MB, free: 14.02 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 7.064e-05/0.1132, allocations: 135.5 kB / 486.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.739e-06/0.1132, allocations: 3.938 kB / 486.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.668e-06/0.1132, allocations: 7.125 kB / 487 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1132, allocations: 0 / 487 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1132, allocations: 0 / 487 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1132, allocations: 0 / 487 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.043e-05/0.1133, allocations: 161.6 kB / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1133, allocations: 0 / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1134, allocations: 0 / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1134, allocations: 3.938 kB / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.1134, allocations: 0 / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1134, allocations: 0 / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1134, allocations: 7.938 kB / 487.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.699e-05/0.1135, allocations: 90.77 kB / 487.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.133e-05/0.1135, allocations: 85.08 kB / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.1135, allocations: 4 kB / 487.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-06/0.1136, allocations: 0 / 487.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-06/0.1136, allocations: 3.938 kB / 487.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1136, allocations: 0 / 487.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.598e-05/0.1136, allocations: 75.28 kB / 487.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1136, allocations: 0 / 487.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004768/0.1141, allocations: 156 kB / 487.5 MB, free: 13.19 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.000933/0.115, allocations: 0.9046 MB / 488.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.31e-05/0.1151, allocations: 67.34 kB / 488.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1151, allocations: 0 / 488.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.091e-05/0.1152, allocations: 55.39 kB / 488.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001141/0.1153, allocations: 4 kB / 488.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003386/0.1156, allocations: 182.5 kB / 488.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.1159, allocations: 0.6808 MB / 489.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.1159, allocations: 4 kB / 489.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.156e-05/0.1159, allocations: 7.438 kB / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1159, allocations: 0 / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.483/0.599, allocations: 5.567 MB / 495 MB, free: 5.715 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.5992, allocations: 238.7 kB / 495.2 MB, free: 5.465 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.081/3.681, allocations: 0 / 495.2 MB, free: 5.465 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