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.001696/0.001696, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002055/0.002055, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2308/0.2308, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002398/0.002398, allocations: 79.86 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3242, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001414/0.3257, allocations: 475.1 kB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003659/0.3293, allocations: 2.413 MB / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.462e-05/0.3294, allocations: 0 / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.159e-05/0.3294, allocations: 0 / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.201e-06/0.3295, allocations: 5.375 kB / 0.5334 GB, free: 11.12 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.002949/0.3324, allocations: 1.14 MB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.928e-05/0.3325, allocations: 5.078 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.246e-05/0.3325, allocations: 1.031 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.346e-05/0.3325, allocations: 8.938 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.802e-05/0.3326, allocations: 1 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-06/0.3326, allocations: 4 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001787/0.3344, allocations: 1.031 MB / 0.5355 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.3344, allocations: 0 / 0.5355 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/0.3344, allocations: 1.281 kB / 0.5355 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007941/0.3352, allocations: 450 kB / 0.536 GB, free: 9.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3352, allocations: 0 / 0.536 GB, free: 9.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3353, allocations: 1.312 kB / 0.536 GB, free: 9.582 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.3353, allocations: 0 / 0.536 GB, free: 9.582 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.0005039/0.3358, allocations: 451.3 kB / 0.5364 GB, free: 9.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3358, allocations: 9.75 kB / 0.5364 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.824e-05/0.3359, allocations: 30.75 kB / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.348e-05/0.3359, allocations: 2.312 kB / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.336, allocations: 160.4 kB / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.336, allocations: 384 / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.336, allocations: 5.641 kB / 0.5366 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.814e-05/0.3361, allocations: 39.8 kB / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.3361, allocations: 0 / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.3362, allocations: 5.203 kB / 0.5366 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3362, allocations: 4 kB / 0.5366 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.644e-05/0.3362, allocations: 1.062 kB / 0.5366 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.3363, allocations: 147.9 kB / 0.5368 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.55e-05/0.3364, allocations: 23.75 kB / 0.5368 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.477e-05/0.3364, allocations: 5.922 kB / 0.5368 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.3364, allocations: 0.9688 kB / 0.5368 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/0.3365, allocations: 69.14 kB / 0.5369 GB, free: 8.523 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3365, allocations: 0 / 0.5369 GB, free: 8.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001631/0.3367, allocations: 63.41 kB / 0.5369 GB, free: 8.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.3367, allocations: 82.19 kB / 0.537 GB, free: 8.359 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.986e-05/0.3368, allocations: 93.81 kB / 0.5371 GB, free: 8.258 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.3368, allocations: 26.77 kB / 0.5371 GB, free: 8.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.3369, allocations: 80.14 kB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.3369, allocations: 1 kB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.3369, allocations: 12.38 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3371, allocations: 314.8 kB / 0.5375 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.3371, allocations: 5.188 kB / 0.5375 GB, free: 7.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.482e-06/0.3371, allocations: 1.156 kB / 0.5375 GB, free: 7.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.568e-05/0.3372, allocations: 63.45 kB / 0.5376 GB, free: 7.734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3372, allocations: 0 / 0.5376 GB, free: 7.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.135e-05/0.3373, allocations: 61.98 kB / 0.5377 GB, free: 7.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.3373, allocations: 35.52 kB / 0.5377 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3373, allocations: 8.031 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.3374, allocations: 0.9688 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-06/0.3374, allocations: 0 / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.3374, allocations: 5.219 kB / 0.5377 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.505e-05/0.3374, allocations: 0 / 0.5377 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.3374, allocations: 0.9062 kB / 0.5377 GB, free: 7.621 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 9.836e-05/0.3375, allocations: 145.7 kB / 0.5378 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-06/0.3375, allocations: 5.125 kB / 0.5378 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.895e-06/0.3375, allocations: 3.125 kB / 0.5378 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3376, allocations: 4.906 kB / 0.5379 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3376, allocations: 0 / 0.5379 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3376, allocations: 5.094 kB / 0.5379 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.3377, allocations: 146.8 kB / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3377, allocations: 0 / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.544e-06/0.3377, allocations: 5.188 kB / 0.538 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3377, allocations: 3.938 kB / 0.538 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.3377, allocations: 1.281 kB / 0.538 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3377, allocations: 0 / 0.538 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3377, allocations: 1 kB / 0.538 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.3378, allocations: 93.11 kB / 0.5381 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.553e-05/0.3379, allocations: 82.55 kB / 0.5382 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.3379, allocations: 0 / 0.5382 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.3379, allocations: 1.094 kB / 0.5382 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.3379, allocations: 1.125 kB / 0.5382 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-06/0.338, allocations: 1.031 kB / 0.5382 GB, free: 7.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.874e-05/0.3381, allocations: 75.28 kB / 0.5382 GB, free: 6.977 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3381, allocations: 32 / 0.5382 GB, free: 6.977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005196/0.3386, allocations: 166.8 kB / 0.5384 GB, free: 6.914 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.001111/0.3397, allocations: 0.9144 MB / 0.5393 GB, free: 6.148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.558e-05/0.3398, allocations: 60.69 kB / 0.5394 GB, free: 6.082 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3398, allocations: 0 / 0.5394 GB, free: 6.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.601e-05/0.3399, allocations: 63.59 kB / 0.5394 GB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.34, allocations: 2.156 kB / 0.5394 GB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003914/0.3404, allocations: 191.2 kB / 0.5396 GB, free: 5.828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.3407, allocations: 0.674 MB / 0.5403 GB, free: 5.129 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.491e-06/0.3407, allocations: 0 / 0.5403 GB, free: 5.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.506e-05/0.3408, allocations: 8.688 kB / 0.5403 GB, free: 5.121 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3408, allocations: 1.125 kB / 0.5403 GB, free: 5.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.3711, allocations: 5.651 MB / 0.5458 GB, free: 1.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.325/8.696, allocations: 5.969 kB / 0.5458 GB, free: 1.707 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