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.0008586/0.0008586, allocations: 98.38 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.0009713/0.0009713, allocations: 202.2 kB / 18.28 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.222/1.222, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1819/0.1819, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.000423, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1036, allocations: 63.56 MB / 483.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005138/0.1042, allocations: 199 kB / 483.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.1072, allocations: 2.431 MB / 485.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.816e-06/0.1073, allocations: 7.938 kB / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.383e-05/0.1073, allocations: 0 / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.398e-06/0.1073, allocations: 0 / 485.8 MB, free: 1.395 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.002157/0.1095, allocations: 1.04 MB / 486.8 MB, free: 364 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.572e-05/0.1095, allocations: 0 / 486.8 MB, free: 364 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.076e-05/0.1095, allocations: 4 kB / 486.8 MB, free: 360 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.405e-05/0.1095, allocations: 0 / 486.8 MB, free: 360 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.992e-05/0.1096, allocations: 3.938 kB / 486.8 MB, free: 356 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.799e-06/0.1096, allocations: 0 / 486.8 MB, free: 356 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001257/0.1108, allocations: 1.003 MB / 487.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.281e-06/0.1109, allocations: 0 / 487.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.574e-05/0.1109, allocations: 33.69 kB / 487.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000535/0.1114, allocations: 439.3 kB / 488.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1114, allocations: 0 / 488.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.1115, allocations: 4 kB / 488.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.096e-06/0.1115, allocations: 3.938 kB / 488.3 MB, free: 14.87 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.0003341/0.1118, allocations: 437.4 kB / 488.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.1118, allocations: 8.875 kB / 488.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.37e-05/0.1119, allocations: 30.75 kB / 488.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.828e-05/0.1119, allocations: 4.938 kB / 488.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.834e-05/0.112, allocations: 164.4 kB / 488.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.051e-06/0.112, allocations: 384 / 488.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.112, allocations: 384 / 488.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.496e-05/0.1121, allocations: 33.83 kB / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.639e-06/0.1121, allocations: 0 / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-06/0.1121, allocations: 0 / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1121, allocations: 3.984 kB / 489 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.394e-05/0.1121, allocations: 0 / 489 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.819e-05/0.1122, allocations: 153.6 kB / 489.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.95e-05/0.1123, allocations: 22.52 kB / 489.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.276e-05/0.1123, allocations: 4.859 kB / 489.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.1123, allocations: 8.078 kB / 489.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.1123, allocations: 60.2 kB / 489.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1123, allocations: 0 / 489.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001333/0.1125, allocations: 71.33 kB / 489.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.1125, allocations: 77.23 kB / 489.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.093e-05/0.1126, allocations: 93.86 kB / 489.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.1126, allocations: 25.7 kB / 489.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.262e-05/0.1126, allocations: 80.14 kB / 489.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.1126, allocations: 3.984 kB / 489.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-05/0.1127, allocations: 13.72 kB / 489.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.685e-05/0.1128, allocations: 318.8 kB / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-06/0.1128, allocations: 4 kB / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.877e-06/0.1128, allocations: 0 / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.111e-05/0.1128, allocations: 64.33 kB / 490 MB, free: 12.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1128, allocations: 0 / 490 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.74e-05/0.1129, allocations: 63.34 kB / 490 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.1129, allocations: 37.62 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1129, allocations: 0 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.113, allocations: 4 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.113, allocations: 0 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.113, allocations: 0 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.268e-05/0.113, allocations: 0 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-06/0.113, allocations: 4.031 kB / 490.1 MB, free: 12.83 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.227e-05/0.1131, allocations: 139.5 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.574e-06/0.1131, allocations: 3.938 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.281e-06/0.1131, allocations: 3.125 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1131, allocations: 0 / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1131, allocations: 3.984 kB / 490.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.1131, allocations: 0 / 490.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.804e-05/0.1132, allocations: 149.6 kB / 490.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.1132, allocations: 0 / 490.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.713e-06/0.1132, allocations: 4 kB / 490.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1132, allocations: 7.938 kB / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.1132, allocations: 0 / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.1132, allocations: 3.938 kB / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1132, allocations: 0 / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.973e-05/0.1133, allocations: 94.77 kB / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.801e-05/0.1134, allocations: 81.05 kB / 490.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.1134, allocations: 4 kB / 490.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.257e-06/0.1134, allocations: 8.016 kB / 490.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.03e-05/0.1134, allocations: 0 / 490.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.1134, allocations: 0 / 490.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.194e-05/0.1134, allocations: 75.28 kB / 490.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1134, allocations: 0 / 490.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003724/0.1138, allocations: 156 kB / 490.8 MB, free: 12.01 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.0008129/0.1146, allocations: 0.9074 MB / 491.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.083e-05/0.1147, allocations: 63.34 kB / 491.8 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.1147, allocations: 0 / 491.8 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.227e-05/0.1148, allocations: 59.41 kB / 491.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001137/0.1149, allocations: 0 / 491.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003327/0.1152, allocations: 184.2 kB / 492 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.1155, allocations: 0.6692 MB / 492.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.1155, allocations: 0 / 492.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.21e-05/0.1155, allocations: 7.438 kB / 492.7 MB, free: 10 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1155, allocations: 8.062 kB / 492.7 MB, free: 9.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01415/0.1296, allocations: 5.443 MB / 498.1 MB, free: 4.668 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/0.1299, allocations: 238.8 kB / 498.4 MB, free: 4.414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.044, allocations: 7.875 kB / 498.4 MB, free: 4.406 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