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.001314/0.001314, allocations: 118.2 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.001413/0.001413, allocations: 197.2 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.367/1.367, allocations: 227.4 MB / 246.9 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.2234/0.2234, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3956, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001734/0.3974, allocations: 473 kB / 0.5309 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00399/0.4014, allocations: 2.414 MB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.737e-05/0.4014, allocations: 0 / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.293e-05/0.4014, allocations: 0 / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.384e-06/0.4015, allocations: 2.156 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.003072/0.4046, allocations: 1.14 MB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.006e-05/0.4047, allocations: 5.312 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.16e-05/0.4047, allocations: 1.344 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.374e-05/0.4048, allocations: 7.875 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.49e-05/0.4048, allocations: 4.844 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.4048, allocations: 0 / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00213/0.407, allocations: 1.039 MB / 0.5354 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.013e-05/0.407, allocations: 0 / 0.5354 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.941e-05/0.407, allocations: 1.031 kB / 0.5354 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008061/0.4078, allocations: 446.4 kB / 0.5359 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.4079, allocations: 3.984 kB / 0.5359 GB, free: 9.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4079, allocations: 0.9688 kB / 0.5359 GB, free: 9.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.4079, allocations: 0 / 0.5359 GB, free: 9.613 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.0005132/0.4084, allocations: 443.5 kB / 0.5363 GB, free: 9.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4085, allocations: 13.22 kB / 0.5363 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.759e-05/0.4085, allocations: 32.06 kB / 0.5363 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.485e-05/0.4085, allocations: 0.9375 kB / 0.5363 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.843e-05/0.4086, allocations: 160.4 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.4086, allocations: 1.719 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.4087, allocations: 1.531 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.4088, allocations: 35.98 kB / 0.5365 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.4088, allocations: 3.938 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4088, allocations: 0 / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.4088, allocations: 5 kB / 0.5365 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.097e-05/0.4088, allocations: 9.109 kB / 0.5365 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.409, allocations: 142.8 kB / 0.5367 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.316e-05/0.4091, allocations: 20.8 kB / 0.5367 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.891e-05/0.4091, allocations: 6.047 kB / 0.5367 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/0.4091, allocations: 0 / 0.5367 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/0.4092, allocations: 66.39 kB / 0.5368 GB, free: 8.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.4092, allocations: 4 kB / 0.5368 GB, free: 8.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002028/0.4094, allocations: 66.27 kB / 0.5368 GB, free: 8.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.4094, allocations: 78.23 kB / 0.5369 GB, free: 8.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.632e-05/0.4095, allocations: 93.81 kB / 0.537 GB, free: 8.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.4095, allocations: 26.8 kB / 0.537 GB, free: 8.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.493e-05/0.4096, allocations: 84.12 kB / 0.5371 GB, free: 8.184 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.4096, allocations: 1.031 kB / 0.5371 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.4096, allocations: 16.06 kB / 0.5371 GB, free: 8.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4098, allocations: 319 kB / 0.5374 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.236e-05/0.4098, allocations: 5 kB / 0.5374 GB, free: 7.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.699e-06/0.4098, allocations: 1.062 kB / 0.5374 GB, free: 7.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.462e-05/0.4099, allocations: 63.52 kB / 0.5375 GB, free: 7.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4099, allocations: 1.312 kB / 0.5375 GB, free: 7.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.43e-05/0.41, allocations: 62.16 kB / 0.5376 GB, free: 7.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.868e-05/0.41, allocations: 39.22 kB / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.41, allocations: 3.938 kB / 0.5376 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.4101, allocations: 4.094 kB / 0.5376 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.4101, allocations: 1.281 kB / 0.5376 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.4101, allocations: 0 / 0.5376 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.89e-05/0.4101, allocations: 1.125 kB / 0.5376 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.4101, allocations: 0 / 0.5376 GB, free: 7.652 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.000121/0.4102, allocations: 137.8 kB / 0.5377 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.13e-05/0.4103, allocations: 5.094 kB / 0.5377 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.086e-05/0.4103, allocations: 4.406 kB / 0.5377 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4103, allocations: 3.984 kB / 0.5377 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4103, allocations: 4 kB / 0.5377 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.4103, allocations: 1.156 kB / 0.5377 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.4104, allocations: 146.7 kB / 0.5379 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4104, allocations: 0 / 0.5379 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.653e-06/0.4104, allocations: 1.031 kB / 0.5379 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.4104, allocations: 3.938 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.4105, allocations: 5.281 kB / 0.5379 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4105, allocations: 0 / 0.5379 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4105, allocations: 9.078 kB / 0.5379 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.4106, allocations: 89.34 kB / 0.538 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.4106, allocations: 81.05 kB / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.4107, allocations: 5.203 kB / 0.5381 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.041e-05/0.4107, allocations: 1.094 kB / 0.5381 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/0.4107, allocations: 1.156 kB / 0.5381 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.4107, allocations: 0 / 0.5381 GB, free: 7.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.148e-05/0.4108, allocations: 76.38 kB / 0.5381 GB, free: 7.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4108, allocations: 0 / 0.5381 GB, free: 7.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000499/0.4113, allocations: 161.6 kB / 0.5383 GB, free: 6.949 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.001013/0.4123, allocations: 0.9254 MB / 0.5392 GB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.89e-05/0.4124, allocations: 59.92 kB / 0.5393 GB, free: 6.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4124, allocations: 1.438 kB / 0.5393 GB, free: 6.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.02e-05/0.4124, allocations: 54.31 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.0001194/0.4126, allocations: 1.469 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.000393/0.413, allocations: 192.4 kB / 0.5395 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.4132, allocations: 0.6702 MB / 0.5402 GB, free: 5.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.803e-06/0.4132, allocations: 0 / 0.5402 GB, free: 5.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.349e-05/0.4133, allocations: 12.59 kB / 0.5402 GB, free: 5.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4133, allocations: 0 / 0.5402 GB, free: 5.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.4381, allocations: 5.658 MB / 0.5457 GB, free: 1.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.468, allocations: 5.969 kB / 0.5457 GB, free: 1.77 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_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_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/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