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.001306/0.001306, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 204.6 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.513/1.513, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2341/0.2341, allocations: 46.12 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003375/0.003376, allocations: 79.86 kB / 480.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3766, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001693/0.3783, allocations: 469 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004426/0.3828, allocations: 2.417 MB / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.004e-05/0.3828, allocations: 0 / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.3829, allocations: 0 / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.404e-06/0.3829, allocations: 3.938 kB / 0.5334 GB, free: 11.13 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.00343/0.3864, allocations: 1.14 MB / 0.5345 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.512e-05/0.3864, allocations: 1.094 kB / 0.5345 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.829e-05/0.3865, allocations: 9.328 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.645e-05/0.3865, allocations: 3.938 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.486e-05/0.3866, allocations: 1.344 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.103e-06/0.3866, allocations: 0 / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002239/0.3888, allocations: 1.039 MB / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-06/0.3889, allocations: 0 / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.3889, allocations: 1.094 kB / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.3899, allocations: 446.2 kB / 0.5359 GB, free: 9.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.39, allocations: 5.078 kB / 0.536 GB, free: 9.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.39, allocations: 0 / 0.536 GB, free: 9.586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.39, allocations: 0 / 0.536 GB, free: 9.586 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.0006216/0.3906, allocations: 443.8 kB / 0.5364 GB, free: 9.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3907, allocations: 13.38 kB / 0.5364 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.3907, allocations: 34.69 kB / 0.5364 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.3907, allocations: 1.781 kB / 0.5364 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.3909, allocations: 160.4 kB / 0.5366 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.3909, allocations: 5.375 kB / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.3909, allocations: 1.438 kB / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.581e-05/0.391, allocations: 35.48 kB / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.391, allocations: 1.031 kB / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.391, allocations: 0 / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.391, allocations: 3.984 kB / 0.5366 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.292e-05/0.3911, allocations: 14.3 kB / 0.5366 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.3912, allocations: 142.8 kB / 0.5368 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.132e-05/0.3913, allocations: 25.02 kB / 0.5368 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.643e-05/0.3913, allocations: 4.859 kB / 0.5368 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-06/0.3913, allocations: 1.281 kB / 0.5368 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.813e-05/0.3914, allocations: 65.39 kB / 0.5369 GB, free: 8.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3914, allocations: 4 kB / 0.5369 GB, free: 8.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001872/0.3916, allocations: 63.58 kB / 0.5369 GB, free: 8.461 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.3917, allocations: 81.05 kB / 0.537 GB, free: 8.363 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.152e-05/0.3917, allocations: 93.81 kB / 0.5371 GB, free: 8.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.3918, allocations: 27.11 kB / 0.5371 GB, free: 8.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.501e-05/0.3918, allocations: 80.14 kB / 0.5372 GB, free: 8.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.3918, allocations: 1.125 kB / 0.5372 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.3919, allocations: 15.09 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.392, allocations: 320 kB / 0.5375 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.392, allocations: 1.125 kB / 0.5375 GB, free: 7.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.392, allocations: 1.094 kB / 0.5375 GB, free: 7.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.475e-05/0.3921, allocations: 59.95 kB / 0.5376 GB, free: 7.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3921, allocations: 0 / 0.5376 GB, free: 7.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.76e-05/0.3922, allocations: 70.11 kB / 0.5376 GB, free: 7.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.3922, allocations: 35.48 kB / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3923, allocations: 0 / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3923, allocations: 4.094 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.3923, allocations: 1.188 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.3923, allocations: 0 / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.895e-05/0.3923, allocations: 1.062 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.3923, allocations: 1.25 kB / 0.5377 GB, free: 7.625 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 0.0001045/0.3924, allocations: 136.6 kB / 0.5378 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.3925, allocations: 5.062 kB / 0.5378 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.651e-05/0.3925, allocations: 8.359 kB / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3925, allocations: 0 / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3925, allocations: 4 kB / 0.5378 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3925, allocations: 8.938 kB / 0.5378 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.3926, allocations: 142.8 kB / 0.538 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3926, allocations: 1.188 kB / 0.538 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.3926, allocations: 0 / 0.538 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.3927, allocations: 7.875 kB / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.3927, allocations: 1.094 kB / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3927, allocations: 0 / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3927, allocations: 5.453 kB / 0.538 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001161/0.3928, allocations: 93.66 kB / 0.5381 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.3929, allocations: 85.05 kB / 0.5382 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.3929, allocations: 5.047 kB / 0.5382 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.3929, allocations: 1.094 kB / 0.5382 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.309e-05/0.3929, allocations: 0 / 0.5382 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.3929, allocations: 1.156 kB / 0.5382 GB, free: 7.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.444e-05/0.393, allocations: 76.22 kB / 0.5382 GB, free: 6.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.393, allocations: 0 / 0.5382 GB, free: 6.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006308/0.3936, allocations: 158.6 kB / 0.5384 GB, free: 6.918 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.001396/0.395, allocations: 0.9106 MB / 0.5393 GB, free: 6.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.3951, allocations: 64.23 kB / 0.5393 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3952, allocations: 0 / 0.5393 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.908e-05/0.3952, allocations: 54.94 kB / 0.5394 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.3953, allocations: 4.281 kB / 0.5394 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004945/0.3958, allocations: 192.4 kB / 0.5396 GB, free: 5.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.3962, allocations: 0.6698 MB / 0.5402 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.3962, allocations: 0 / 0.5402 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.698e-05/0.3962, allocations: 9.406 kB / 0.5402 GB, free: 5.137 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3962, allocations: 3.938 kB / 0.5403 GB, free: 5.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03242/0.4287, allocations: 5.649 MB / 0.5458 GB, free: 1.738 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.729, allocations: 2.484 kB / 0.5458 GB, free: 1.738 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