Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001177/0.001177, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.9 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.2086/0.2086, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 75.86 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3412, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001555/0.3428, allocations: 473.5 kB / 0.5309 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003374/0.3462, allocations: 2.409 MB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.938e-05/0.3462, allocations: 0 / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.09e-05/0.3462, allocations: 1.281 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.67e-06/0.3462, allocations: 0 / 0.5333 GB, free: 11.17 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.002738/0.349, allocations: 1.153 MB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.731e-05/0.349, allocations: 5.359 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.274e-05/0.3491, allocations: 1.375 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.701e-05/0.3491, allocations: 3.938 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.998e-05/0.3491, allocations: 1.375 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-06/0.3491, allocations: 0 / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001582/0.3507, allocations: 1.038 MB / 0.5354 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-06/0.3508, allocations: 1.25 kB / 0.5354 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.964e-05/0.3508, allocations: 1.219 kB / 0.5354 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006563/0.3514, allocations: 446.1 kB / 0.5359 GB, free: 9.621 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3515, allocations: 0 / 0.5359 GB, free: 9.621 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3515, allocations: 0 / 0.5359 GB, free: 9.621 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.3515, allocations: 1.5 kB / 0.5359 GB, free: 9.621 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.0004199/0.3519, allocations: 442.4 kB / 0.5363 GB, free: 9.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.3519, allocations: 10.09 kB / 0.5363 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.899e-05/0.352, allocations: 34.75 kB / 0.5363 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.54e-05/0.352, allocations: 6.266 kB / 0.5363 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.361e-05/0.3521, allocations: 164.4 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.3521, allocations: 4.312 kB / 0.5365 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-06/0.3521, allocations: 1.719 kB / 0.5365 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.287e-05/0.3522, allocations: 32.02 kB / 0.5365 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.3522, allocations: 3.938 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-06/0.3522, allocations: 0.9375 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.3523, allocations: 0 / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.597e-05/0.3523, allocations: 1.25 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.3524, allocations: 151.1 kB / 0.5367 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.717e-05/0.3525, allocations: 25.42 kB / 0.5367 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.461e-05/0.3525, allocations: 10.3 kB / 0.5367 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-06/0.3525, allocations: 0 / 0.5367 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.3525, allocations: 61.7 kB / 0.5368 GB, free: 8.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3525, allocations: 0 / 0.5368 GB, free: 8.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001503/0.3527, allocations: 70.64 kB / 0.5368 GB, free: 8.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/0.3528, allocations: 78.52 kB / 0.5369 GB, free: 8.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.561e-05/0.3528, allocations: 93.81 kB / 0.537 GB, free: 8.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.3528, allocations: 29.7 kB / 0.537 GB, free: 8.266 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.327e-05/0.3528, allocations: 80.14 kB / 0.5371 GB, free: 8.184 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.3529, allocations: 1.344 kB / 0.5371 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.679e-05/0.3529, allocations: 12.47 kB / 0.5371 GB, free: 8.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.353, allocations: 314.8 kB / 0.5374 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.042e-05/0.353, allocations: 5.5 kB / 0.5374 GB, free: 7.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.335e-06/0.3531, allocations: 9.359 kB / 0.5374 GB, free: 7.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.633e-05/0.3531, allocations: 58.77 kB / 0.5375 GB, free: 7.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3531, allocations: 0 / 0.5375 GB, free: 7.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.546e-05/0.3532, allocations: 63.22 kB / 0.5376 GB, free: 7.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.768e-05/0.3532, allocations: 34.86 kB / 0.5376 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3532, allocations: 0 / 0.5376 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.3533, allocations: 4.984 kB / 0.5376 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.3533, allocations: 4.094 kB / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.3533, allocations: 1.188 kB / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.684e-05/0.3533, allocations: 0 / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.3533, allocations: 5.219 kB / 0.5376 GB, free: 7.656 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.924e-05/0.3534, allocations: 137.8 kB / 0.5377 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.3534, allocations: 5.125 kB / 0.5377 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.953e-06/0.3534, allocations: 3.125 kB / 0.5377 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3534, allocations: 3.984 kB / 0.5378 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3534, allocations: 1.062 kB / 0.5378 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3534, allocations: 4 kB / 0.5378 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.142e-05/0.3535, allocations: 154.7 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3535, allocations: 1.031 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-07/0.3535, allocations: 0 / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3536, allocations: 5.031 kB / 0.5379 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.3536, allocations: 0 / 0.5379 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.3536, allocations: 1 kB / 0.5379 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3536, allocations: 0 / 0.5379 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.3537, allocations: 94.77 kB / 0.538 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.556e-05/0.3537, allocations: 81.05 kB / 0.5381 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.3538, allocations: 1.25 kB / 0.5381 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-06/0.3538, allocations: 0 / 0.5381 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.288e-05/0.3538, allocations: 5.281 kB / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.3538, allocations: 5.172 kB / 0.5381 GB, free: 7.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.731e-05/0.3538, allocations: 75.28 kB / 0.5382 GB, free: 7.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3538, allocations: 0 / 0.5382 GB, free: 7.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.3543, allocations: 154.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.001038/0.3554, allocations: 0.9187 MB / 0.5392 GB, free: 6.188 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001013/0.3555, allocations: 61.08 kB / 0.5393 GB, free: 6.121 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3555, allocations: 0 / 0.5393 GB, free: 6.121 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.517e-05/0.3555, allocations: 62.75 kB / 0.5393 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.3556, allocations: 4.625 kB / 0.5393 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003607/0.356, allocations: 182.9 kB / 0.5395 GB, free: 5.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.3562, allocations: 0.6741 MB / 0.5402 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.18e-06/0.3563, allocations: 1.125 kB / 0.5402 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.348e-05/0.3563, allocations: 8.562 kB / 0.5402 GB, free: 5.168 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3563, allocations: 0 / 0.5402 GB, free: 5.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.382, allocations: 5.67 MB / 0.5457 GB, free: 1.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.013/8.396, allocations: 1.078 kB / 0.5457 GB, free: 1.773 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches