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.001099/0.001099, allocations: 117.8 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 207.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2213/0.2213, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 71.88 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3423, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001542/0.3439, allocations: 481.3 kB / 0.5309 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003991/0.3479, allocations: 2.41 MB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.778e-05/0.3479, allocations: 0 / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.864e-05/0.348, allocations: 0 / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.214e-06/0.348, allocations: 4 kB / 0.5333 GB, free: 11.16 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.003412/0.3514, allocations: 1.144 MB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.062e-05/0.3515, allocations: 2.375 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.074e-05/0.3516, allocations: 1.219 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.133e-05/0.3516, allocations: 3.938 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.619e-05/0.3516, allocations: 5.141 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.575e-06/0.3516, allocations: 7.938 kB / 0.5344 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002404/0.354, allocations: 1.03 MB / 0.5354 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.3541, allocations: 0.875 kB / 0.5354 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.3541, allocations: 1.25 kB / 0.5354 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.3553, allocations: 446.9 kB / 0.5359 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3553, allocations: 0 / 0.5359 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3553, allocations: 0 / 0.5359 GB, free: 9.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.3553, allocations: 1.375 kB / 0.5359 GB, free: 9.617 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.0006634/0.356, allocations: 441.7 kB / 0.5363 GB, free: 9.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.356, allocations: 9.312 kB / 0.5363 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.766e-05/0.3561, allocations: 31.69 kB / 0.5363 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.3561, allocations: 8.922 kB / 0.5363 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.3562, allocations: 161.5 kB / 0.5365 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3563, allocations: 384 / 0.5365 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.3563, allocations: 1.781 kB / 0.5365 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.3564, allocations: 36.81 kB / 0.5365 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.3564, allocations: 3.938 kB / 0.5365 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.3564, allocations: 3.938 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.3565, allocations: 4 kB / 0.5365 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.909e-05/0.3565, allocations: 5.5 kB / 0.5365 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.3567, allocations: 146.9 kB / 0.5367 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.677e-05/0.3567, allocations: 24.73 kB / 0.5367 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.743e-05/0.3567, allocations: 5.953 kB / 0.5367 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.18e-06/0.3568, allocations: 1.312 kB / 0.5367 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.378e-05/0.3568, allocations: 65.33 kB / 0.5368 GB, free: 8.566 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.3568, allocations: 0 / 0.5368 GB, free: 8.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000188/0.357, allocations: 66.3 kB / 0.5368 GB, free: 8.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.3571, allocations: 78.23 kB / 0.5369 GB, free: 8.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.42e-05/0.3571, allocations: 93.86 kB / 0.537 GB, free: 8.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.3572, allocations: 26.89 kB / 0.537 GB, free: 8.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.073e-05/0.3572, allocations: 80.14 kB / 0.5371 GB, free: 8.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.3572, allocations: 1.125 kB / 0.5371 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.3573, allocations: 12.12 kB / 0.5371 GB, free: 8.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3574, allocations: 314.8 kB / 0.5374 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.234e-05/0.3574, allocations: 1.219 kB / 0.5374 GB, free: 7.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.947e-06/0.3574, allocations: 5.141 kB / 0.5374 GB, free: 7.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.091e-05/0.3575, allocations: 63.73 kB / 0.5375 GB, free: 7.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3575, allocations: 3.938 kB / 0.5375 GB, free: 7.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.945e-05/0.3576, allocations: 58.25 kB / 0.5375 GB, free: 7.711 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.974e-05/0.3577, allocations: 34.98 kB / 0.5376 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3577, allocations: 9.422 kB / 0.5376 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.3577, allocations: 0 / 0.5376 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-06/0.3577, allocations: 4 kB / 0.5376 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3577, allocations: 1.031 kB / 0.5376 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.992e-05/0.3577, allocations: 3.906 kB / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.3578, allocations: 1.062 kB / 0.5376 GB, free: 7.66 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.177e-05/0.3579, allocations: 137.8 kB / 0.5377 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.379e-05/0.3579, allocations: 5 kB / 0.5377 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.128e-05/0.3579, allocations: 3.125 kB / 0.5377 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3579, allocations: 5.062 kB / 0.5377 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3579, allocations: 0 / 0.5377 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3579, allocations: 1.188 kB / 0.5377 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.3581, allocations: 154.7 kB / 0.5379 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3581, allocations: 0 / 0.5379 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-06/0.3581, allocations: 0.9688 kB / 0.5379 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3581, allocations: 7.922 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.3581, allocations: 1 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3581, allocations: 0.9688 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3581, allocations: 3.938 kB / 0.5379 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.3582, allocations: 98.23 kB / 0.538 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.3583, allocations: 81.05 kB / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.3583, allocations: 1.219 kB / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.3583, allocations: 1.25 kB / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.3583, allocations: 0 / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.3584, allocations: 5.109 kB / 0.5381 GB, free: 7.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.72e-05/0.3584, allocations: 75.28 kB / 0.5382 GB, free: 7.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3584, allocations: 4.031 kB / 0.5382 GB, free: 7.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006878/0.3591, allocations: 151.2 kB / 0.5383 GB, free: 6.957 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.001487/0.3606, allocations: 0.9018 MB / 0.5392 GB, free: 6.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.3607, allocations: 60.83 kB / 0.5392 GB, free: 6.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3607, allocations: 0 / 0.5392 GB, free: 6.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.332e-05/0.3608, allocations: 58.78 kB / 0.5393 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/0.3609, allocations: 6.125 kB / 0.5393 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000614/0.3616, allocations: 180.2 kB / 0.5395 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.3619, allocations: 0.6698 MB / 0.5401 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.973e-05/0.3619, allocations: 1.125 kB / 0.5401 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.3619, allocations: 12.28 kB / 0.5401 GB, free: 5.188 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3619, allocations: 3.938 kB / 0.5401 GB, free: 5.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02681/0.3887, allocations: 5.665 MB / 0.5457 GB, free: 1.812 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.465, allocations: 5.703 kB / 0.5457 GB, free: 1.809 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