Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001672/0.001672, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 207.8 kB / 18.74 MB, free: 4.312 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 4.1.0-beta.om/package.mo): time 0.2478/0.2478, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002386/0.002386, allocations: 87.84 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3418, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.00153/0.3434, allocations: 480.5 kB / 0.531 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003688/0.3471, allocations: 2.415 MB / 0.5334 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.423e-05/0.3471, allocations: 1.625 kB / 0.5334 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.3472, allocations: 0 / 0.5334 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.961e-06/0.3472, allocations: 0 / 0.5334 GB, free: 11.11 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.002968/0.3502, allocations: 1.141 MB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.776e-05/0.3503, allocations: 1.25 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.833e-05/0.3503, allocations: 1.312 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.105e-05/0.3503, allocations: 5.188 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.249e-05/0.3504, allocations: 0 / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.693e-06/0.3504, allocations: 0 / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.3525, allocations: 1.043 MB / 0.5355 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.082e-05/0.3525, allocations: 1.031 kB / 0.5355 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.3525, allocations: 1.125 kB / 0.5355 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008804/0.3534, allocations: 446.2 kB / 0.536 GB, free: 9.574 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3534, allocations: 0 / 0.536 GB, free: 9.574 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3534, allocations: 1.188 kB / 0.536 GB, free: 9.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.3534, allocations: 0 / 0.536 GB, free: 9.574 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.0005352/0.354, allocations: 447.2 kB / 0.5364 GB, free: 9.121 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.354, allocations: 9.062 kB / 0.5364 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.3541, allocations: 35.81 kB / 0.5364 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.3541, allocations: 0.9375 kB / 0.5364 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.3542, allocations: 165.5 kB / 0.5366 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.3543, allocations: 384 / 0.5366 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.654e-06/0.3543, allocations: 1.562 kB / 0.5366 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.294e-05/0.3544, allocations: 32.05 kB / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3544, allocations: 3.938 kB / 0.5366 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-06/0.3544, allocations: 1.156 kB / 0.5366 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.3544, allocations: 3.984 kB / 0.5366 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.15e-05/0.3544, allocations: 9.062 kB / 0.5366 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.3546, allocations: 150.8 kB / 0.5368 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.115e-05/0.3547, allocations: 21.02 kB / 0.5368 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.749e-05/0.3547, allocations: 6.047 kB / 0.5368 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.054e-06/0.3547, allocations: 1.156 kB / 0.5368 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/0.3547, allocations: 61.33 kB / 0.5369 GB, free: 8.523 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3548, allocations: 0 / 0.5369 GB, free: 8.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001755/0.3549, allocations: 78.22 kB / 0.5369 GB, free: 8.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.355, allocations: 78.17 kB / 0.537 GB, free: 8.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.992e-05/0.3551, allocations: 94.94 kB / 0.5371 GB, free: 8.246 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.3551, allocations: 25.7 kB / 0.5371 GB, free: 8.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.459e-05/0.3551, allocations: 80.14 kB / 0.5372 GB, free: 8.133 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.3551, allocations: 5.062 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/0.3552, allocations: 12.06 kB / 0.5372 GB, free: 8.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3553, allocations: 319 kB / 0.5375 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-06/0.3553, allocations: 1.125 kB / 0.5375 GB, free: 7.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.809e-06/0.3553, allocations: 5.031 kB / 0.5375 GB, free: 7.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.893e-05/0.3554, allocations: 63.59 kB / 0.5376 GB, free: 7.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3554, allocations: 0 / 0.5376 GB, free: 7.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.028e-05/0.3555, allocations: 62.53 kB / 0.5377 GB, free: 7.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.3555, allocations: 35.33 kB / 0.5377 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3555, allocations: 1.094 kB / 0.5377 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3556, allocations: 96 / 0.5377 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.3556, allocations: 4 kB / 0.5377 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.3556, allocations: 5.016 kB / 0.5377 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.3556, allocations: 0 / 0.5377 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.3556, allocations: 1.188 kB / 0.5377 GB, free: 7.605 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.896e-05/0.3557, allocations: 138 kB / 0.5378 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/0.3557, allocations: 5.219 kB / 0.5378 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.206e-06/0.3558, allocations: 3.125 kB / 0.5378 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3558, allocations: 0 / 0.5378 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3558, allocations: 1.125 kB / 0.5378 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3558, allocations: 4 kB / 0.5378 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.3559, allocations: 152 kB / 0.538 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3559, allocations: 0 / 0.538 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.3559, allocations: 0 / 0.538 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3559, allocations: 5.281 kB / 0.538 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.3559, allocations: 0 / 0.538 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3559, allocations: 1.312 kB / 0.538 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3559, allocations: 0 / 0.538 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.3561, allocations: 97.83 kB / 0.5381 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-05/0.3561, allocations: 81.05 kB / 0.5382 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.3561, allocations: 1.406 kB / 0.5382 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.738e-06/0.3562, allocations: 1.312 kB / 0.5382 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-06/0.3562, allocations: 0 / 0.5382 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.3562, allocations: 1.281 kB / 0.5382 GB, free: 7.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.536e-05/0.3562, allocations: 79.28 kB / 0.5382 GB, free: 6.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3562, allocations: 0 / 0.5382 GB, free: 6.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005428/0.3568, allocations: 157.8 kB / 0.5384 GB, free: 6.91 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.001225/0.358, allocations: 0.9203 MB / 0.5393 GB, free: 6.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.3581, allocations: 56.12 kB / 0.5393 GB, free: 6.078 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3582, allocations: 0 / 0.5393 GB, free: 6.078 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.246e-05/0.3582, allocations: 58.92 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.0001326/0.3583, allocations: 2.281 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.0004523/0.3588, allocations: 188.4 kB / 0.5396 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.3591, allocations: 0.6729 MB / 0.5402 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.493e-06/0.3591, allocations: 1.406 kB / 0.5402 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.3591, allocations: 8.938 kB / 0.5402 GB, free: 5.125 MB / 398.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3592, allocations: 0 / 0.5402 GB, free: 5.125 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/0.3902, allocations: 5.657 MB / 0.5458 GB, free: 1.738 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.354/8.744, allocations: 12.58 kB / 0.5458 GB, free: 1.73 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1)