Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.00142/0.00142, allocations: 117.6 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.001494/0.001494, allocations: 204.7 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.522/1.522, allocations: 227.4 MB / 247 MB, free: 10.46 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.2321/0.2321, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.002324/0.002324, allocations: 75.88 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.342, allocations: 62.44 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001783/0.3438, allocations: 477.6 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00405/0.3479, allocations: 2.416 MB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.641e-05/0.3479, allocations: 0 / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.348, allocations: 0 / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.051e-06/0.348, allocations: 1.375 kB / 0.5334 GB, free: 11.16 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.003144/0.3511, allocations: 1.143 MB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.382e-05/0.3512, allocations: 2.312 kB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.829e-05/0.3513, allocations: 5.078 kB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.727e-05/0.3513, allocations: 3.938 kB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.681e-05/0.3513, allocations: 5.141 kB / 0.5345 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-06/0.3513, allocations: 0 / 0.5345 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/0.3531, allocations: 1.039 MB / 0.5355 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-06/0.3531, allocations: 0 / 0.5355 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.3531, allocations: 1.125 kB / 0.5355 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007028/0.3538, allocations: 446.7 kB / 0.536 GB, free: 9.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3538, allocations: 0 / 0.536 GB, free: 9.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3539, allocations: 0 / 0.536 GB, free: 9.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.3539, allocations: 0.9062 kB / 0.536 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.0005351/0.3544, allocations: 447.5 kB / 0.5364 GB, free: 9.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.3545, allocations: 13.22 kB / 0.5364 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.074e-05/0.3545, allocations: 34.73 kB / 0.5364 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.3545, allocations: 2.094 kB / 0.5364 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.3547, allocations: 160.4 kB / 0.5366 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.3547, allocations: 1.5 kB / 0.5366 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.3547, allocations: 1.594 kB / 0.5366 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.437e-05/0.3548, allocations: 44.08 kB / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.3548, allocations: 0 / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.3548, allocations: 0 / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3548, allocations: 0.9688 kB / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2e-05/0.3549, allocations: 9.062 kB / 0.5366 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.355, allocations: 146.9 kB / 0.5368 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.65e-05/0.3551, allocations: 21.17 kB / 0.5368 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.756e-05/0.3551, allocations: 6.141 kB / 0.5368 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-06/0.3551, allocations: 0 / 0.5368 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.65e-05/0.3552, allocations: 65.56 kB / 0.5369 GB, free: 8.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3552, allocations: 4 kB / 0.5369 GB, free: 8.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001727/0.3554, allocations: 66.38 kB / 0.5369 GB, free: 8.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.3554, allocations: 78.2 kB / 0.537 GB, free: 8.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.269e-05/0.3555, allocations: 93.81 kB / 0.5371 GB, free: 8.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.3555, allocations: 26.77 kB / 0.5371 GB, free: 8.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.443e-05/0.3556, allocations: 84.08 kB / 0.5372 GB, free: 8.172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.3556, allocations: 1.188 kB / 0.5372 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.3556, allocations: 15.67 kB / 0.5372 GB, free: 8.152 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3558, allocations: 316 kB / 0.5375 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.293e-05/0.3558, allocations: 4.969 kB / 0.5375 GB, free: 7.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.482e-06/0.3558, allocations: 1.031 kB / 0.5375 GB, free: 7.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.465e-05/0.3559, allocations: 59.39 kB / 0.5376 GB, free: 7.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3559, allocations: 0 / 0.5376 GB, free: 7.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.629e-05/0.356, allocations: 66.61 kB / 0.5376 GB, free: 7.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.356, allocations: 35.52 kB / 0.5377 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.356, allocations: 0 / 0.5377 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.356, allocations: 4.094 kB / 0.5377 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.356, allocations: 0.9375 kB / 0.5377 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.3561, allocations: 4 kB / 0.5377 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.612e-05/0.3561, allocations: 1.125 kB / 0.5377 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.3561, allocations: 1.188 kB / 0.5377 GB, free: 7.648 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.489e-05/0.3562, allocations: 137.7 kB / 0.5378 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.452e-05/0.3562, allocations: 8.984 kB / 0.5378 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.105e-06/0.3562, allocations: 3.125 kB / 0.5378 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.3562, allocations: 0 / 0.5378 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.3562, allocations: 5.156 kB / 0.5378 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3563, allocations: 3.938 kB / 0.5378 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.3564, allocations: 142.8 kB / 0.538 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3564, allocations: 1.25 kB / 0.538 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3564, allocations: 0 / 0.538 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3564, allocations: 5.156 kB / 0.538 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.3564, allocations: 3.984 kB / 0.538 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3564, allocations: 1.188 kB / 0.538 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3564, allocations: 0 / 0.538 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001099/0.3565, allocations: 93.56 kB / 0.5381 GB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.846e-05/0.3566, allocations: 86.28 kB / 0.5382 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.3566, allocations: 0 / 0.5382 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.3566, allocations: 1.219 kB / 0.5382 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.12e-05/0.3566, allocations: 1.062 kB / 0.5382 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.3566, allocations: 0 / 0.5382 GB, free: 7.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.844e-05/0.3567, allocations: 76.34 kB / 0.5382 GB, free: 7.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3567, allocations: 0 / 0.5382 GB, free: 7.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004967/0.3572, allocations: 162.7 kB / 0.5384 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.0012/0.3584, allocations: 0.9139 MB / 0.5393 GB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.3585, allocations: 60.88 kB / 0.5393 GB, free: 6.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3585, allocations: 0 / 0.5393 GB, free: 6.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.032e-05/0.3586, allocations: 54.78 kB / 0.5394 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.0001311/0.3587, allocations: 2.219 kB / 0.5394 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004486/0.3592, allocations: 192.4 kB / 0.5396 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.3595, allocations: 0.6698 MB / 0.5402 GB, free: 5.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.452e-06/0.3595, allocations: 0 / 0.5402 GB, free: 5.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.688e-05/0.3596, allocations: 9.594 kB / 0.5402 GB, free: 5.164 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3596, allocations: 0 / 0.5402 GB, free: 5.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03075/0.3903, allocations: 5.663 MB / 0.5458 GB, free: 1.781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.389/8.779, allocations: 13.77 kB / 0.5458 GB, free: 1.773 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1)