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.001212/0.001212, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.203/0.203, allocations: 46.1 MB / 344.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 76.28 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1215, allocations: 62.45 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002051/0.1236, allocations: 471.8 kB / 480.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.1274, allocations: 2.407 MB / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.383e-05/0.1275, allocations: 7.875 kB / 483 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.1275, allocations: 0 / 483 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-06/0.1276, allocations: 0 / 483 MB, free: 2.27 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.002831/0.1304, allocations: 1.155 MB / 484.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.67e-05/0.1304, allocations: 0 / 484.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.79e-05/0.1305, allocations: 0 / 484.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.436e-05/0.1305, allocations: 0 / 484.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.229e-05/0.1305, allocations: 7.938 kB / 484.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-06/0.1305, allocations: 0 / 484.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.1322, allocations: 1.007 MB / 485.2 MB, free: 104 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.1322, allocations: 7.984 kB / 485.2 MB, free: 96 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.802e-05/0.1322, allocations: 0 / 485.2 MB, free: 96 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007891/0.133, allocations: 443.4 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.133, allocations: 4 kB / 485.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.133, allocations: 0 / 485.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.133, allocations: 0 / 485.6 MB, free: 15.65 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.0004968/0.1335, allocations: 445.4 kB / 486 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1336, allocations: 12.03 kB / 486.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.819e-05/0.1336, allocations: 38.62 kB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.295e-05/0.1337, allocations: 0.9375 kB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.402e-05/0.1338, allocations: 164.4 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.1338, allocations: 384 / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.746e-06/0.1338, allocations: 4.375 kB / 486.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.539e-05/0.1339, allocations: 33.83 kB / 486.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.1339, allocations: 0 / 486.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-06/0.1339, allocations: 0 / 486.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1339, allocations: 0 / 486.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.79e-05/0.1339, allocations: 4 kB / 486.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.1341, allocations: 149.7 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.038e-05/0.1341, allocations: 22.45 kB / 486.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.498e-05/0.1341, allocations: 12.95 kB / 486.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-06/0.1342, allocations: 0 / 486.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.1342, allocations: 60.2 kB / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.1342, allocations: 0 / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001655/0.1344, allocations: 67.39 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.1344, allocations: 81.05 kB / 486.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.296e-05/0.1345, allocations: 89.86 kB / 486.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.1345, allocations: 29.83 kB / 486.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.495e-05/0.1345, allocations: 84.14 kB / 486.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.1346, allocations: 0 / 486.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.1346, allocations: 9.719 kB / 486.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1347, allocations: 310.8 kB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.1347, allocations: 4 kB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.528e-06/0.1347, allocations: 0 / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.724e-05/0.1348, allocations: 68.31 kB / 487.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.1348, allocations: 4 kB / 487.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.316e-05/0.1349, allocations: 59.41 kB / 487.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.1349, allocations: 33.64 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1349, allocations: 3.938 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1349, allocations: 4 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1349, allocations: 0 / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.135, allocations: 3.984 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.61e-05/0.135, allocations: 4 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.135, allocations: 0 / 487.4 MB, free: 13.61 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 8.363e-05/0.1351, allocations: 139.6 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.033e-05/0.1351, allocations: 7.938 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.083e-06/0.1351, allocations: 3.125 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.1351, allocations: 0 / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1351, allocations: 0 / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1351, allocations: 0 / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.986e-05/0.1352, allocations: 153.5 kB / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1352, allocations: 0 / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1352, allocations: 4 kB / 487.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1352, allocations: 3.938 kB / 487.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.1353, allocations: 7.984 kB / 487.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1353, allocations: 3.938 kB / 487.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1353, allocations: 0 / 487.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.896e-05/0.1354, allocations: 98.75 kB / 487.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.1354, allocations: 81.05 kB / 487.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.1354, allocations: 0 / 487.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.1354, allocations: 0 / 487.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.361e-05/0.1355, allocations: 8.031 kB / 487.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.1355, allocations: 0 / 487.9 MB, free: 13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.623e-05/0.1355, allocations: 75.28 kB / 487.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1355, allocations: 0 / 487.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004995/0.136, allocations: 156 kB / 488.1 MB, free: 12.77 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.0009114/0.1369, allocations: 0.8962 MB / 489 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.638e-05/0.137, allocations: 67.34 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.137, allocations: 0 / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.148e-05/0.1371, allocations: 59.39 kB / 489.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.1372, allocations: 4 kB / 489.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003414/0.1376, allocations: 178.5 kB / 489.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.1378, allocations: 0.6767 MB / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.19e-06/0.1378, allocations: 0 / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.094e-05/0.1379, allocations: 11.44 kB / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1379, allocations: 0 / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.1613, allocations: 5.64 MB / 495.6 MB, free: 5.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.835/9.997, allocations: 7.328 kB / 495.6 MB, free: 5.188 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