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.00133/0.00133, allocations: 117.6 kB / 17.78 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.001468/0.001468, allocations: 199.9 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 247 MB, free: 10.41 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.246/0.246, allocations: 46.11 MB / 344.3 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.002325/0.002325, allocations: 75.88 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.333, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001485/0.3345, allocations: 478 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003641/0.3382, allocations: 2.413 MB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.5e-05/0.3383, allocations: 0 / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.418e-05/0.3383, allocations: 0 / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.502e-06/0.3383, allocations: 1.375 kB / 0.5334 GB, free: 11.14 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.002924/0.3413, allocations: 1.152 MB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.209e-05/0.3413, allocations: 0.9688 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.023e-05/0.3414, allocations: 9.016 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.684e-05/0.3414, allocations: 5.109 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.151e-05/0.3414, allocations: 1.156 kB / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-06/0.3414, allocations: 0 / 0.5345 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001758/0.3432, allocations: 1.026 MB / 0.5355 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.3432, allocations: 1.562 kB / 0.5355 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.022e-05/0.3433, allocations: 4 kB / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007697/0.344, allocations: 454.2 kB / 0.536 GB, free: 9.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.344, allocations: 1.062 kB / 0.536 GB, free: 9.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3441, allocations: 0 / 0.536 GB, free: 9.582 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.3441, allocations: 0 / 0.536 GB, free: 9.582 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.0004951/0.3446, allocations: 443.6 kB / 0.5364 GB, free: 9.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.3446, allocations: 9.062 kB / 0.5364 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.037e-05/0.3447, allocations: 31.75 kB / 0.5364 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.3447, allocations: 5.719 kB / 0.5364 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.3448, allocations: 164.4 kB / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.3449, allocations: 1.188 kB / 0.5366 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.156e-06/0.3449, allocations: 5.406 kB / 0.5366 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.882e-05/0.345, allocations: 39.62 kB / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.345, allocations: 0.7188 kB / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.345, allocations: 0 / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.345, allocations: 0.7812 kB / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.094e-05/0.345, allocations: 1.75 kB / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000151/0.3452, allocations: 142.8 kB / 0.5368 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.833e-05/0.3453, allocations: 28.48 kB / 0.5368 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.636e-05/0.3453, allocations: 5.797 kB / 0.5368 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.3453, allocations: 5.078 kB / 0.5368 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.704e-05/0.3454, allocations: 65.3 kB / 0.5369 GB, free: 8.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3454, allocations: 0 / 0.5369 GB, free: 8.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001852/0.3456, allocations: 59 kB / 0.5369 GB, free: 8.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.239e-05/0.3456, allocations: 82.17 kB / 0.537 GB, free: 8.371 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.602e-05/0.3457, allocations: 101.8 kB / 0.5371 GB, free: 8.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.3457, allocations: 30.62 kB / 0.5371 GB, free: 8.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.3458, allocations: 80.14 kB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.368e-05/0.3458, allocations: 0.9062 kB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.3458, allocations: 11.66 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.346, allocations: 312 kB / 0.5375 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.346, allocations: 0 / 0.5375 GB, free: 7.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.039e-05/0.346, allocations: 9.656 kB / 0.5375 GB, free: 7.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.072e-05/0.3461, allocations: 67.64 kB / 0.5376 GB, free: 7.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3461, allocations: 0 / 0.5376 GB, free: 7.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.151e-05/0.3462, allocations: 62.55 kB / 0.5377 GB, free: 7.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.3462, allocations: 35.42 kB / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3462, allocations: 0 / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.3462, allocations: 1.5 kB / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.3462, allocations: 0 / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3462, allocations: 0 / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.933e-05/0.3463, allocations: 5.438 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.3463, allocations: 0 / 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 9.582e-05/0.3464, allocations: 138.4 kB / 0.5378 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.3464, allocations: 4.969 kB / 0.5378 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.664e-06/0.3464, allocations: 3.125 kB / 0.5378 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3464, allocations: 0 / 0.5378 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3464, allocations: 5.031 kB / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3464, allocations: 0 / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.3465, allocations: 148.1 kB / 0.538 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3465, allocations: 7.938 kB / 0.538 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.717e-06/0.3466, allocations: 3.984 kB / 0.538 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.3466, allocations: 3.938 kB / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.3466, allocations: 1.094 kB / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3466, allocations: 1.25 kB / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3466, allocations: 0 / 0.538 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.3467, allocations: 93.09 kB / 0.5381 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.178e-05/0.3468, allocations: 82.23 kB / 0.5382 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.3468, allocations: 5.25 kB / 0.5382 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-06/0.3468, allocations: 1.156 kB / 0.5382 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.798e-06/0.3468, allocations: 0 / 0.5382 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.3468, allocations: 1.125 kB / 0.5382 GB, free: 7.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.398e-05/0.3469, allocations: 75.28 kB / 0.5382 GB, free: 6.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3469, allocations: 0 / 0.5382 GB, free: 6.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005434/0.3474, allocations: 158.1 kB / 0.5384 GB, free: 6.926 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.001113/0.3486, allocations: 0.9189 MB / 0.5393 GB, free: 6.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.307e-05/0.3487, allocations: 55.84 kB / 0.5393 GB, free: 6.094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3487, allocations: 1.312 kB / 0.5393 GB, free: 6.094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.305e-05/0.3487, allocations: 59 kB / 0.5394 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.3489, allocations: 1.625 kB / 0.5394 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003886/0.3492, allocations: 186.7 kB / 0.5396 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.3495, allocations: 0.67 MB / 0.5402 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.831e-06/0.3496, allocations: 1.438 kB / 0.5402 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.3496, allocations: 12.66 kB / 0.5402 GB, free: 5.141 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3496, allocations: 0 / 0.5402 GB, free: 5.141 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.3812, allocations: 5.661 MB / 0.5458 GB, free: 1.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.396/8.778, allocations: 10.7 kB / 0.5458 GB, free: 1.727 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1)