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.001147/0.001147, allocations: 104.9 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2129/0.2129, allocations: 46.11 MB / 343.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 73.12 kB / 416.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1309, allocations: 62.45 MB / 479.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001792/0.1328, allocations: 0.5216 MB / 479.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003526/0.1363, allocations: 2.481 MB / 482.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.277e-05/0.1363, allocations: 0 / 482.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.089e-05/0.1364, allocations: 0 / 482.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.1364, allocations: 4 kB / 482.4 MB, free: 2.59 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.002622/0.139, allocations: 1.052 MB / 483.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.081e-05/0.1391, allocations: 7.984 kB / 483.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.224e-05/0.1391, allocations: 0 / 483.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.682e-05/0.1391, allocations: 3.984 kB / 483.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.062e-05/0.1392, allocations: 7.938 kB / 483.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-06/0.1392, allocations: 0 / 483.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001635/0.1408, allocations: 1.003 MB / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-06/0.1408, allocations: 0 / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.896e-05/0.1409, allocations: 0 / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008613/0.1417, allocations: 447.3 kB / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1417, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1418, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1418, allocations: 0 / 484.9 MB, free: 80 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.0004957/0.1423, allocations: 445.5 kB / 485.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1423, allocations: 8.875 kB / 485.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.1424, allocations: 38.73 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.904e-05/0.1424, allocations: 0.9375 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.025e-05/0.1425, allocations: 160.4 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.1425, allocations: 384 / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.1425, allocations: 4.375 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.309e-05/0.1426, allocations: 33.83 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.731e-06/0.1426, allocations: 0 / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.1426, allocations: 0 / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1426, allocations: 0 / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.058e-05/0.1427, allocations: 7.875 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.1428, allocations: 153.7 kB / 485.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.938e-05/0.1429, allocations: 14.58 kB / 485.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.597e-05/0.1429, allocations: 12.95 kB / 485.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.625e-06/0.1429, allocations: 0 / 485.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/0.143, allocations: 60.2 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.143, allocations: 0 / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001718/0.1432, allocations: 71.33 kB / 485.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/0.1432, allocations: 77.11 kB / 486 MB, free: 14.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.086e-05/0.1433, allocations: 89.86 kB / 486 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.1433, allocations: 29.83 kB / 486.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.91e-05/0.1434, allocations: 80.14 kB / 486.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.1434, allocations: 4 kB / 486.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.1434, allocations: 9.719 kB / 486.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1435, allocations: 310.8 kB / 486.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.381e-05/0.1436, allocations: 7.984 kB / 486.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.1436, allocations: 0 / 486.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.315e-05/0.1436, allocations: 72.27 kB / 486.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1436, allocations: 0 / 486.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.964e-05/0.1437, allocations: 59.34 kB / 486.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.1438, allocations: 37.64 kB / 486.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1438, allocations: 3.984 kB / 486.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1438, allocations: 0 / 486.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.143e-06/0.1438, allocations: 0 / 486.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.1438, allocations: 0 / 486.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.705e-05/0.1438, allocations: 0 / 486.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.1439, allocations: 4 kB / 486.7 MB, free: 14.04 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 0.0001044/0.144, allocations: 139.6 kB / 486.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.039e-05/0.144, allocations: 3.938 kB / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.478e-06/0.144, allocations: 7.125 kB / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.144, allocations: 0 / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.144, allocations: 0 / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.144, allocations: 4 kB / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.65e-05/0.1441, allocations: 149.6 kB / 486.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1441, allocations: 3.984 kB / 487 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.344e-06/0.1441, allocations: 0 / 487 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.1441, allocations: 11.88 kB / 487 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-06/0.1442, allocations: 4 kB / 487 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1442, allocations: 0 / 487 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1442, allocations: 0 / 487 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/0.1443, allocations: 94.77 kB / 487.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.1443, allocations: 81.05 kB / 487.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.1443, allocations: 0 / 487.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.998e-06/0.1443, allocations: 0 / 487.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.1444, allocations: 4.031 kB / 487.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.1444, allocations: 7.984 kB / 487.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.1444, allocations: 75.28 kB / 487.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1444, allocations: 0 / 487.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005214/0.1449, allocations: 156 kB / 487.4 MB, free: 13.21 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.00116/0.1461, allocations: 0.909 MB / 488.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.1462, allocations: 67.39 kB / 488.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1462, allocations: 0 / 488.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.333e-05/0.1463, allocations: 55.41 kB / 488.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.1464, allocations: 0 / 488.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004107/0.1468, allocations: 184.3 kB / 488.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1471, allocations: 0.6692 MB / 489.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.963e-06/0.1471, allocations: 3.984 kB / 489.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.509e-05/0.1471, allocations: 7.438 kB / 489.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1471, allocations: 4 kB / 489.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.1718, allocations: 5.533 MB / 494.8 MB, free: 5.746 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.1721, allocations: 247.3 kB / 495 MB, free: 5.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.099, allocations: 0 / 495 MB, free: 5.484 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