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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001768/0.001768, 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.001872/0.001872, 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.492/1.492, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.2368/0.2368, allocations: 46.88 MB / 357.4 MB, free: 10.52 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.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"}) [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.002364/0.002364, allocations: 87.84 kB / 0.4912 GB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1308, allocations: 65.99 MB / 0.5556 GB, free: 6.441 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001585/0.1324, allocations: 482.8 kB / 0.5561 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003764/0.1362, allocations: 2.426 MB / 0.5585 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.722e-05/0.1362, allocations: 0 / 0.5585 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.684e-05/0.1362, allocations: 0 / 0.5585 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.1362, allocations: 0 / 0.5585 GB, free: 3.52 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.003079/0.1393, allocations: 1.144 MB / 0.5596 GB, free: 2.375 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.378e-05/0.1393, allocations: 4 kB / 0.5596 GB, free: 2.371 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.884e-05/0.1394, allocations: 7.984 kB / 0.5596 GB, free: 2.363 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.683e-05/0.1394, allocations: 0 / 0.5596 GB, free: 2.363 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.144e-05/0.1394, allocations: 3.938 kB / 0.5596 GB, free: 2.359 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.1394, allocations: 0 / 0.5596 GB, free: 2.359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001754/0.1412, allocations: 1.034 MB / 0.5606 GB, free: 1.324 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.029e-05/0.1412, allocations: 3.984 kB / 0.5606 GB, free: 1.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.908e-05/0.1412, allocations: 0 / 0.5606 GB, free: 1.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006668/0.1419, allocations: 451 kB / 0.561 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1419, allocations: 4 kB / 0.561 GB, free: 0.875 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1419, allocations: 4 kB / 0.561 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1419, allocations: 3.938 kB / 0.561 GB, free: 0.8672 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.0005059/0.1424, allocations: 440.4 kB / 0.5615 GB, free: 392 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1424, allocations: 12.03 kB / 0.5615 GB, free: 380 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.67e-05/0.1425, allocations: 34.69 kB / 0.5615 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.517e-05/0.1425, allocations: 0.9375 kB / 0.5615 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.1426, allocations: 160.4 kB / 0.5617 GB, free: 136 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.1426, allocations: 384 / 0.5617 GB, free: 136 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-06/0.1426, allocations: 384 / 0.5617 GB, free: 136 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.591e-05/0.1427, allocations: 41.81 kB / 0.5617 GB, free: 88 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1427, allocations: 0 / 0.5617 GB, free: 88 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.1427, allocations: 0 / 0.5617 GB, free: 88 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1428, allocations: 3.938 kB / 0.5617 GB, free: 84 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.859e-05/0.1428, allocations: 4 kB / 0.5617 GB, free: 80 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.143, allocations: 145.7 kB / 0.5619 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.409e-05/0.143, allocations: 18.56 kB / 0.5619 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.828e-05/0.143, allocations: 12.95 kB / 0.5619 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.268e-06/0.143, allocations: 0 / 0.5619 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.1431, allocations: 64.19 kB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1431, allocations: 0 / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001862/0.1433, allocations: 67.34 kB / 0.562 GB, free: 15.69 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.1433, allocations: 77.11 kB / 0.5621 GB, free: 15.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.279e-05/0.1434, allocations: 93.81 kB / 0.5622 GB, free: 15.49 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1434, allocations: 29.7 kB / 0.5622 GB, free: 15.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.626e-05/0.1434, allocations: 88.25 kB / 0.5623 GB, free: 15.37 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.1435, allocations: 3.938 kB / 0.5623 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.1435, allocations: 9.719 kB / 0.5623 GB, free: 15.35 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1436, allocations: 318.8 kB / 0.5626 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.015e-05/0.1436, allocations: 0 / 0.5626 GB, free: 15.03 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.631e-06/0.1436, allocations: 0 / 0.5626 GB, free: 15.03 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.063e-05/0.1437, allocations: 64.2 kB / 0.5627 GB, free: 14.95 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1437, allocations: 4.062 kB / 0.5627 GB, free: 14.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.591e-05/0.1438, allocations: 63.39 kB / 0.5627 GB, free: 14.87 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.1438, allocations: 33.64 kB / 0.5628 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1438, allocations: 0 / 0.5628 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1438, allocations: 0 / 0.5628 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1438, allocations: 0 / 0.5628 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1438, allocations: 0 / 0.5628 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.381e-05/0.1439, allocations: 4 kB / 0.5628 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.1439, allocations: 0 / 0.5628 GB, free: 14.83 MB / 430.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.0001004/0.144, allocations: 147.5 kB / 0.5629 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.144, allocations: 7.938 kB / 0.5629 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.005e-06/0.144, allocations: 3.125 kB / 0.5629 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.144, allocations: 3.938 kB / 0.5629 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.144, allocations: 0 / 0.5629 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.144, allocations: 0 / 0.5629 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.1441, allocations: 149.7 kB / 0.5631 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1441, allocations: 4 kB / 0.5631 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.1441, allocations: 3.984 kB / 0.5631 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1441, allocations: 3.938 kB / 0.5631 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.1441, allocations: 0 / 0.5631 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1441, allocations: 4 kB / 0.5631 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1441, allocations: 3.938 kB / 0.5631 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.94e-05/0.1442, allocations: 86.84 kB / 0.5632 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.898e-05/0.1443, allocations: 85.03 kB / 0.5632 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.1443, allocations: 0 / 0.5632 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.1443, allocations: 4 kB / 0.5632 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-06/0.1443, allocations: 0 / 0.5632 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.1443, allocations: 4.031 kB / 0.5633 GB, free: 14.22 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.269e-05/0.1443, allocations: 79.28 kB / 0.5633 GB, free: 14.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1443, allocations: 0 / 0.5633 GB, free: 14.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004922/0.1448, allocations: 159.5 kB / 0.5635 GB, free: 13.99 MB / 430.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.00104/0.1459, allocations: 0.9008 MB / 0.5644 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.648e-05/0.146, allocations: 59.41 kB / 0.5644 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.146, allocations: 4.062 kB / 0.5644 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.146, allocations: 55.41 kB / 0.5645 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.1461, allocations: 4 kB / 0.5645 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003832/0.1465, allocations: 194.1 kB / 0.5647 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1468, allocations: 0.6729 MB / 0.5653 GB, free: 11.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.189e-06/0.1468, allocations: 0 / 0.5653 GB, free: 11.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.387e-05/0.1468, allocations: 15.31 kB / 0.5653 GB, free: 11.96 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1468, allocations: 0 / 0.5653 GB, free: 11.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.1756, allocations: 5.682 MB / 0.5709 GB, free: 6.379 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.449/8.624, allocations: 3.875 kB / 0.5709 GB, free: 6.379 MB / 430.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.57267992105335] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.693525971844792 8.710619075 8.565420983 Calling exit ...