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.001337/0.001337, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001391/0.001391, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.461/1.461, allocations: 230.2 MB / 254.5 MB, free: 15.38 MB / 206.1 MB " [Timeout remaining time 178] 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.2403/0.2403, allocations: 46.88 MB / 357.4 MB, free: 10.51 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.002349/0.002349, allocations: 76.81 kB / 0.4912 GB, free: 27.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1195, allocations: 65.98 MB / 0.5556 GB, free: 9.152 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001598/0.1211, allocations: 480.9 kB / 0.5561 GB, free: 8.676 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003767/0.1249, allocations: 2.422 MB / 0.5584 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.701e-05/0.1249, allocations: 0 / 0.5584 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.581e-05/0.1249, allocations: 0 / 0.5584 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.102e-06/0.125, allocations: 3.938 kB / 0.5584 GB, free: 6.23 MB / 414.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.002956/0.1279, allocations: 1.156 MB / 0.5596 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.316e-05/0.128, allocations: 4 kB / 0.5596 GB, free: 5.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.128, allocations: 3.938 kB / 0.5596 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.709e-05/0.128, allocations: 0 / 0.5596 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.08e-05/0.128, allocations: 0 / 0.5596 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-06/0.128, allocations: 0 / 0.5596 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.1297, allocations: 1.046 MB / 0.5606 GB, free: 4.02 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.311e-05/0.1297, allocations: 3.984 kB / 0.5606 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.892e-05/0.1298, allocations: 0 / 0.5606 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006431/0.1304, allocations: 447.3 kB / 0.561 GB, free: 3.578 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1304, allocations: 0 / 0.561 GB, free: 3.578 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1304, allocations: 0 / 0.561 GB, free: 3.578 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1304, allocations: 0 / 0.561 GB, free: 3.578 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.000488/0.1309, allocations: 448.3 kB / 0.5615 GB, free: 3.086 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1309, allocations: 8.031 kB / 0.5615 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.567e-05/0.131, allocations: 34.75 kB / 0.5615 GB, free: 3.035 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.384e-05/0.131, allocations: 0.9375 kB / 0.5615 GB, free: 3.035 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.1311, allocations: 168.4 kB / 0.5617 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1311, allocations: 4.312 kB / 0.5617 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.1311, allocations: 4.312 kB / 0.5617 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.569e-05/0.1312, allocations: 33.83 kB / 0.5617 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1312, allocations: 0 / 0.5617 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.1312, allocations: 0 / 0.5617 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1312, allocations: 0 / 0.5617 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.826e-05/0.1313, allocations: 3.938 kB / 0.5617 GB, free: 2.781 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.1314, allocations: 153.7 kB / 0.5619 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.32e-05/0.1315, allocations: 18.56 kB / 0.5619 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.846e-05/0.1315, allocations: 4.859 kB / 0.5619 GB, free: 2.547 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-06/0.1315, allocations: 0 / 0.5619 GB, free: 2.547 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.703e-05/0.1315, allocations: 68.27 kB / 0.5619 GB, free: 2.465 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.1315, allocations: 0 / 0.5619 GB, free: 2.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001936/0.1317, allocations: 75.33 kB / 0.562 GB, free: 2.379 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.1318, allocations: 77.11 kB / 0.5621 GB, free: 2.285 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.468e-05/0.1319, allocations: 93.81 kB / 0.5622 GB, free: 2.184 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.1319, allocations: 25.7 kB / 0.5622 GB, free: 2.152 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.1319, allocations: 80.14 kB / 0.5623 GB, free: 2.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.1319, allocations: 0 / 0.5623 GB, free: 2.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.132, allocations: 13.72 kB / 0.5623 GB, free: 2.051 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1321, allocations: 310.8 kB / 0.5626 GB, free: 1.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-06/0.1321, allocations: 4.125 kB / 0.5626 GB, free: 1.734 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.265e-05/0.1321, allocations: 4 kB / 0.5626 GB, free: 1.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.66e-05/0.1322, allocations: 64.25 kB / 0.5627 GB, free: 1.652 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1322, allocations: 0 / 0.5627 GB, free: 1.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.405e-05/0.1323, allocations: 63.34 kB / 0.5627 GB, free: 1.578 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.1323, allocations: 37.64 kB / 0.5627 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.1323, allocations: 0 / 0.5627 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.1323, allocations: 0 / 0.5627 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.1323, allocations: 96 / 0.5627 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1323, allocations: 4 kB / 0.5628 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.429e-05/0.1323, allocations: 0 / 0.5628 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.1323, allocations: 0 / 0.5628 GB, free: 1.531 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 0.0001348/0.1325, allocations: 143.5 kB / 0.5629 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.1325, allocations: 3.938 kB / 0.5629 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.075e-06/0.1325, allocations: 3.125 kB / 0.5629 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1325, allocations: 0 / 0.5629 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.1325, allocations: 3.938 kB / 0.5629 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1325, allocations: 4 kB / 0.5629 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.1326, allocations: 153.7 kB / 0.5631 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1326, allocations: 0 / 0.5631 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1326, allocations: 0 / 0.5631 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1326, allocations: 7.875 kB / 0.5631 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.1326, allocations: 4 kB / 0.5631 GB, free: 1.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1326, allocations: 0 / 0.5631 GB, free: 1.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1326, allocations: 0 / 0.5631 GB, free: 1.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.1327, allocations: 94.77 kB / 0.5632 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.519e-05/0.1328, allocations: 85.05 kB / 0.5632 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.1328, allocations: 3.984 kB / 0.5632 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.1328, allocations: 0 / 0.5632 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.535e-05/0.1328, allocations: 0 / 0.5632 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1328, allocations: 0 / 0.5632 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.524e-05/0.1329, allocations: 79.28 kB / 0.5633 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1329, allocations: 0 / 0.5633 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004914/0.1334, allocations: 159.5 kB / 0.5635 GB, free: 0.6953 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.001126/0.1345, allocations: 0.9148 MB / 0.5644 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.1346, allocations: 59.41 kB / 0.5644 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1346, allocations: 0 / 0.5644 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.299e-05/0.1347, allocations: 59.39 kB / 0.5645 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.1348, allocations: 3.938 kB / 0.5645 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004288/0.1352, allocations: 186.2 kB / 0.5647 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.1355, allocations: 0.6769 MB / 0.5653 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.991e-06/0.1356, allocations: 0 / 0.5653 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.483e-05/0.1356, allocations: 7.438 kB / 0.5653 GB, free: 14.67 MB / 430.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1356, allocations: 4 kB / 0.5653 GB, free: 14.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.1654, allocations: 5.682 MB / 0.5709 GB, free: 9.078 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.512/8.677, allocations: 15.66 kB / 0.5709 GB, free: 9.066 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.557485319208354] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.748574051074684 8.772634777 8.637596866 Calling exit ...