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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001464/0.001464, allocations: 105.8 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001547/0.001547, allocations: 221 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 230.2 MB / 256.1 MB, free: 8.75 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1976/0.1976, allocations: 46.89 MB / 359.3 MB, free: 4.973 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002109/0.002109, allocations: 79.86 kB / 0.4939 GB, free: 9.129 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2552, allocations: 65.97 MB / 0.5584 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001372/0.2566, allocations: 472.4 kB / 0.5588 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.2597, allocations: 2.454 MB / 0.5612 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.824e-05/0.2598, allocations: 0 / 0.5612 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.194e-05/0.2598, allocations: 0 / 0.5612 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.2598, allocations: 0 / 0.5612 GB, free: 2.281 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.002298/0.2621, allocations: 1.16 MB / 0.5624 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.733e-05/0.2621, allocations: 0 / 0.5624 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.025e-05/0.2621, allocations: 0 / 0.5624 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.216e-05/0.2622, allocations: 3.938 kB / 0.5624 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.615e-05/0.2622, allocations: 4 kB / 0.5624 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.649e-06/0.2622, allocations: 0 / 0.5624 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/0.2636, allocations: 1.038 MB / 0.5634 GB, free: 76 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.201e-06/0.2636, allocations: 0 / 0.5634 GB, free: 76 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.382e-05/0.2636, allocations: 0 / 0.5634 GB, free: 76 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005576/0.2642, allocations: 448.9 kB / 0.5638 GB, free: 15.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2642, allocations: 7.922 kB / 0.5638 GB, free: 15.63 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2642, allocations: 0 / 0.5638 GB, free: 15.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.2642, allocations: 0 / 0.5638 GB, free: 15.63 MB / 414.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.0004286/0.2646, allocations: 448.3 kB / 0.5642 GB, free: 15.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.2647, allocations: 8.031 kB / 0.5642 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.673e-05/0.2647, allocations: 34.75 kB / 0.5643 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.064e-05/0.2647, allocations: 8.938 kB / 0.5643 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.2648, allocations: 164.4 kB / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.212e-06/0.2648, allocations: 384 / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.2648, allocations: 384 / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.71e-05/0.2649, allocations: 33.83 kB / 0.5645 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.74e-06/0.2649, allocations: 0 / 0.5645 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-06/0.2649, allocations: 0 / 0.5645 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-06/0.2649, allocations: 0 / 0.5645 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.857e-05/0.2649, allocations: 7.922 kB / 0.5645 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001294/0.2651, allocations: 149.7 kB / 0.5646 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.508e-05/0.2651, allocations: 18.58 kB / 0.5646 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.31e-05/0.2651, allocations: 4.953 kB / 0.5646 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-06/0.2651, allocations: 4 kB / 0.5647 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.2652, allocations: 60.2 kB / 0.5647 GB, free: 14.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.2652, allocations: 0 / 0.5647 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001459/0.2653, allocations: 67.42 kB / 0.5648 GB, free: 14.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.2654, allocations: 81.14 kB / 0.5649 GB, free: 14.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.288e-05/0.2654, allocations: 97.81 kB / 0.5649 GB, free: 14.24 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.2654, allocations: 25.7 kB / 0.565 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.251e-05/0.2655, allocations: 80.14 kB / 0.565 GB, free: 14.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.2655, allocations: 4 kB / 0.5651 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.323e-05/0.2655, allocations: 9.719 kB / 0.5651 GB, free: 14.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.2656, allocations: 314.8 kB / 0.5654 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.514e-06/0.2656, allocations: 0 / 0.5654 GB, free: 13.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-06/0.2656, allocations: 8 kB / 0.5654 GB, free: 13.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.205e-05/0.2657, allocations: 64.27 kB / 0.5654 GB, free: 13.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2657, allocations: 0 / 0.5654 GB, free: 13.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.503e-05/0.2657, allocations: 63.33 kB / 0.5655 GB, free: 13.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.2658, allocations: 37.64 kB / 0.5655 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.2658, allocations: 3.938 kB / 0.5655 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.2658, allocations: 3.938 kB / 0.5655 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.2658, allocations: 0 / 0.5655 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.556e-06/0.2658, allocations: 4.094 kB / 0.5655 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.164e-05/0.2658, allocations: 0 / 0.5655 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.2658, allocations: 4 kB / 0.5655 GB, free: 13.57 MB / 414.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 7.918e-05/0.2659, allocations: 131.5 kB / 0.5657 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.2659, allocations: 3.938 kB / 0.5657 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.528e-06/0.2659, allocations: 11.11 kB / 0.5657 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.81e-07/0.2659, allocations: 0 / 0.5657 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.2659, allocations: 0 / 0.5657 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-06/0.2659, allocations: 0 / 0.5657 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.311e-05/0.266, allocations: 149.7 kB / 0.5658 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.266, allocations: 0 / 0.5658 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.364e-06/0.266, allocations: 3.984 kB / 0.5658 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.266, allocations: 7.938 kB / 0.5658 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.266, allocations: 0 / 0.5658 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.266, allocations: 0 / 0.5658 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.266, allocations: 7.984 kB / 0.5658 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.116e-05/0.2661, allocations: 90.78 kB / 0.5659 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.2662, allocations: 85.08 kB / 0.566 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.2662, allocations: 3.984 kB / 0.566 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.544e-06/0.2662, allocations: 0 / 0.566 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.2662, allocations: 0 / 0.566 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.2662, allocations: 4 kB / 0.566 GB, free: 12.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.749e-05/0.2662, allocations: 75.28 kB / 0.5661 GB, free: 12.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2662, allocations: 0 / 0.5661 GB, free: 12.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003951/0.2666, allocations: 155.5 kB / 0.5662 GB, free: 12.75 MB / 414.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.0009086/0.2675, allocations: 0.924 MB / 0.5671 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.179e-05/0.2676, allocations: 59.39 kB / 0.5672 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2676, allocations: 0 / 0.5672 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.516e-05/0.2676, allocations: 59.41 kB / 0.5673 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001078/0.2677, allocations: 0 / 0.5673 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003411/0.2681, allocations: 190.1 kB / 0.5674 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.2683, allocations: 0.669 MB / 0.5681 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.809e-06/0.2683, allocations: 4.125 kB / 0.5681 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.437e-05/0.2684, allocations: 11.44 kB / 0.5681 GB, free: 10.72 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2684, allocations: 0 / 0.5681 GB, free: 10.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.294, allocations: 5.652 MB / 0.5736 GB, free: 5.129 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.159/7.453, allocations: 4.516 kB / 0.5736 GB, free: 5.129 MB / 414.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.957277032997808]