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.001171/0.001178, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 83.86 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.354, allocations: 62.42 MB / 0.5305 GB, free: 13.31 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001669/0.3557, allocations: 478.2 kB / 0.5309 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003656/0.3594, allocations: 2.413 MB / 0.5333 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.196e-05/0.3595, allocations: 0 / 0.5333 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.3595, allocations: 0 / 0.5333 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.3595, allocations: 0 / 0.5333 GB, free: 11.06 MB / 398.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.002867/0.3624, allocations: 1.16 MB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.886e-05/0.3625, allocations: 6.734 kB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.592e-05/0.3625, allocations: 0 / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.611e-05/0.3625, allocations: 5.312 kB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.854e-05/0.3625, allocations: 1.375 kB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.049e-06/0.3626, allocations: 0 / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.3643, allocations: 1.03 MB / 0.5354 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.015e-06/0.3643, allocations: 0 / 0.5354 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.84e-05/0.3643, allocations: 1.344 kB / 0.5354 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000783/0.3651, allocations: 454.3 kB / 0.5359 GB, free: 9.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3651, allocations: 1.094 kB / 0.5359 GB, free: 9.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3651, allocations: 0 / 0.5359 GB, free: 9.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.3651, allocations: 0 / 0.5359 GB, free: 9.5 MB / 398.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.0004754/0.3656, allocations: 439.1 kB / 0.5363 GB, free: 9.059 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3657, allocations: 9.594 kB / 0.5363 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.944e-05/0.3657, allocations: 38.75 kB / 0.5363 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.508e-05/0.3657, allocations: 2.031 kB / 0.5363 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.012e-05/0.3658, allocations: 164.4 kB / 0.5365 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.3658, allocations: 1.688 kB / 0.5365 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-06/0.3658, allocations: 384 / 0.5365 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.985e-05/0.3659, allocations: 36.52 kB / 0.5365 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.366, allocations: 3.938 kB / 0.5365 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.366, allocations: 1.531 kB / 0.5365 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.366, allocations: 0 / 0.5365 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.922e-05/0.366, allocations: 1.594 kB / 0.5365 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.3661, allocations: 151.3 kB / 0.5367 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.965e-05/0.3662, allocations: 23.8 kB / 0.5367 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.469e-05/0.3662, allocations: 6.016 kB / 0.5367 GB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-06/0.3662, allocations: 0 / 0.5367 GB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.3663, allocations: 65.42 kB / 0.5368 GB, free: 8.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3663, allocations: 0 / 0.5368 GB, free: 8.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000153/0.3664, allocations: 67.61 kB / 0.5368 GB, free: 8.387 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.3665, allocations: 78.36 kB / 0.5369 GB, free: 8.293 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.238e-05/0.3665, allocations: 93.86 kB / 0.537 GB, free: 8.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.3665, allocations: 25.7 kB / 0.537 GB, free: 8.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.689e-05/0.3666, allocations: 81.64 kB / 0.5371 GB, free: 8.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.3666, allocations: 0 / 0.5371 GB, free: 8.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.72e-05/0.3666, allocations: 12.16 kB / 0.5371 GB, free: 8.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.961e-05/0.3667, allocations: 310.8 kB / 0.5374 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.112e-05/0.3667, allocations: 5.25 kB / 0.5374 GB, free: 7.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.752e-06/0.3667, allocations: 1.031 kB / 0.5374 GB, free: 7.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.745e-05/0.3668, allocations: 75.44 kB / 0.5375 GB, free: 7.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3668, allocations: 0 / 0.5375 GB, free: 7.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.83e-05/0.3669, allocations: 59.25 kB / 0.5375 GB, free: 7.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.3669, allocations: 34.27 kB / 0.5376 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3669, allocations: 0.9688 kB / 0.5376 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3669, allocations: 0 / 0.5376 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.367, allocations: 0.9688 kB / 0.5376 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.367, allocations: 7.984 kB / 0.5376 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.662e-05/0.367, allocations: 5.031 kB / 0.5376 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.367, allocations: 0.9688 kB / 0.5376 GB, free: 7.551 MB / 398.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.852e-05/0.3671, allocations: 138 kB / 0.5377 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.3671, allocations: 4.719 kB / 0.5377 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.01e-05/0.3671, allocations: 7.125 kB / 0.5377 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3671, allocations: 0.9062 kB / 0.5377 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3671, allocations: 0 / 0.5377 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3671, allocations: 5.031 kB / 0.5377 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.062e-05/0.3672, allocations: 150.7 kB / 0.5379 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3672, allocations: 0 / 0.5379 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-06/0.3672, allocations: 9.062 kB / 0.5379 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3673, allocations: 3.938 kB / 0.5379 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.3673, allocations: 1 kB / 0.5379 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3673, allocations: 0 / 0.5379 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3673, allocations: 0.8438 kB / 0.5379 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.248e-05/0.3674, allocations: 94.11 kB / 0.538 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.808e-05/0.3674, allocations: 81.05 kB / 0.5381 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.3674, allocations: 1.188 kB / 0.5381 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.818e-06/0.3674, allocations: 1.219 kB / 0.5381 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.127e-05/0.3675, allocations: 3.984 kB / 0.5381 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.3675, allocations: 1.188 kB / 0.5381 GB, free: 6.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.724e-05/0.3675, allocations: 75.28 kB / 0.5381 GB, free: 6.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3675, allocations: 1.5 kB / 0.5381 GB, free: 6.902 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005414/0.368, allocations: 153.6 kB / 0.5383 GB, free: 6.852 MB / 398.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.001038/0.3691, allocations: 0.9134 MB / 0.5392 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.892e-05/0.3692, allocations: 56.19 kB / 0.5392 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3692, allocations: 5 kB / 0.5392 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.192e-05/0.3692, allocations: 58.55 kB / 0.5393 GB, free: 5.957 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.3694, allocations: 4.188 kB / 0.5393 GB, free: 5.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003747/0.3698, allocations: 181 kB / 0.5395 GB, free: 5.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000198/0.37, allocations: 0.6768 MB / 0.5401 GB, free: 5.082 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.939e-06/0.37, allocations: 1.906 kB / 0.5401 GB, free: 5.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.425e-05/0.37, allocations: 7.438 kB / 0.5401 GB, free: 5.074 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.37, allocations: 0 / 0.5401 GB, free: 5.074 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.394, allocations: 5.662 MB / 0.5457 GB, free: 1.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/8.178, allocations: 10.58 kB / 0.5457 GB, free: 1.691 MB / 398.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