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.00134/0.00134, allocations: 108.7 kB / 19.8 MB, free: 2.516 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.001468/0.001468, allocations: 218.2 kB / 23 MB, free: 5.617 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.473/1.473, allocations: 230.2 MB / 256.2 MB, free: 8.734 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.2362/0.2362, allocations: 46.89 MB / 359.4 MB, free: 4.949 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.002467/0.002467, allocations: 75.88 kB / 0.4941 GB, free: 9.066 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3065, allocations: 65.99 MB / 0.5585 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001673/0.3082, allocations: 472.5 kB / 0.559 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003854/0.312, allocations: 2.443 MB / 0.5614 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.895e-05/0.3121, allocations: 0 / 0.5614 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.333e-05/0.3121, allocations: 3.938 kB / 0.5614 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.121e-06/0.3121, allocations: 0 / 0.5614 GB, free: 2.258 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.003107/0.3152, allocations: 1.163 MB / 0.5625 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.75e-05/0.3152, allocations: 0 / 0.5625 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.778e-05/0.3153, allocations: 7.984 kB / 0.5625 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.391e-05/0.3153, allocations: 0 / 0.5625 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.291e-05/0.3153, allocations: 3.984 kB / 0.5625 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.29e-06/0.3153, allocations: 0 / 0.5625 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002056/0.3174, allocations: 1.038 MB / 0.5635 GB, free: 44 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.249e-05/0.3174, allocations: 0 / 0.5635 GB, free: 44 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.241e-05/0.3174, allocations: 0 / 0.5635 GB, free: 44 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.3185, allocations: 445 kB / 0.564 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.165e-05/0.3185, allocations: 4 kB / 0.564 GB, free: 15.6 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3185, allocations: 0 / 0.564 GB, free: 15.6 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3185, allocations: 0 / 0.564 GB, free: 15.6 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.0006444/0.3191, allocations: 444.3 kB / 0.5644 GB, free: 15.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.3192, allocations: 19.97 kB / 0.5644 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.617e-05/0.3192, allocations: 30.75 kB / 0.5644 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.192e-05/0.3193, allocations: 4.875 kB / 0.5644 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.3194, allocations: 164.2 kB / 0.5646 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3194, allocations: 4.359 kB / 0.5646 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.3194, allocations: 4.375 kB / 0.5646 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.3195, allocations: 33.81 kB / 0.5646 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3195, allocations: 0 / 0.5646 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.3195, allocations: 0 / 0.5646 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3196, allocations: 0 / 0.5646 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.07e-05/0.3196, allocations: 8 kB / 0.5647 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001777/0.3198, allocations: 149.7 kB / 0.5648 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.336e-05/0.3198, allocations: 22.55 kB / 0.5648 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.69e-05/0.3198, allocations: 4.859 kB / 0.5648 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.3198, allocations: 0 / 0.5648 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.06e-05/0.3199, allocations: 64.19 kB / 0.5649 GB, free: 14.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 3.106e-06/0.3199, allocations: 4 kB / 0.5649 GB, free: 14.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002021/0.3201, allocations: 63.47 kB / 0.5649 GB, free: 14.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.3202, allocations: 77.11 kB / 0.565 GB, free: 14.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.45e-05/0.3202, allocations: 97.75 kB / 0.5651 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.3202, allocations: 29.7 kB / 0.5651 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.373e-05/0.3203, allocations: 80.14 kB / 0.5652 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.3203, allocations: 0 / 0.5652 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.3203, allocations: 13.7 kB / 0.5652 GB, free: 14.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3205, allocations: 319 kB / 0.5655 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.3205, allocations: 4 kB / 0.5655 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.232e-06/0.3205, allocations: 0 / 0.5655 GB, free: 13.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.304e-05/0.3205, allocations: 60.27 kB / 0.5656 GB, free: 13.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3205, allocations: 0 / 0.5656 GB, free: 13.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.337e-05/0.3206, allocations: 63.39 kB / 0.5657 GB, free: 13.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.3207, allocations: 33.64 kB / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3207, allocations: 0 / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.3207, allocations: 96 / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.3207, allocations: 7.938 kB / 0.5657 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.3207, allocations: 4 kB / 0.5657 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.622e-05/0.3207, allocations: 0 / 0.5657 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.3207, allocations: 0 / 0.5657 GB, free: 13.55 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.0001006/0.3208, allocations: 139.5 kB / 0.5658 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.369e-05/0.3208, allocations: 11.86 kB / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.448e-06/0.3208, allocations: 3.125 kB / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3208, allocations: 0 / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3208, allocations: 0 / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3208, allocations: 7.938 kB / 0.5659 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.321, allocations: 145.7 kB / 0.566 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.321, allocations: 0 / 0.566 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.897e-06/0.321, allocations: 4 kB / 0.566 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.321, allocations: 7.922 kB / 0.566 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.321, allocations: 0 / 0.566 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.321, allocations: 0 / 0.566 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.321, allocations: 0 / 0.566 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.3211, allocations: 90.84 kB / 0.5661 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.3211, allocations: 88.97 kB / 0.5662 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.3211, allocations: 0 / 0.5662 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.082e-05/0.3212, allocations: 4 kB / 0.5662 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.113e-05/0.3212, allocations: 0 / 0.5662 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.3212, allocations: 0 / 0.5662 GB, free: 12.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.419e-05/0.3212, allocations: 75.28 kB / 0.5663 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3212, allocations: 0 / 0.5663 GB, free: 12.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005353/0.3217, allocations: 163.5 kB / 0.5664 GB, free: 12.72 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.001198/0.3229, allocations: 0.9114 MB / 0.5673 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001181/0.3231, allocations: 63.34 kB / 0.5674 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3231, allocations: 4 kB / 0.5674 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.475e-05/0.3231, allocations: 51.41 kB / 0.5674 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.3232, allocations: 4 kB / 0.5674 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.3237, allocations: 194.3 kB / 0.5676 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.324, allocations: 0.6728 MB / 0.5683 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.26e-06/0.324, allocations: 0 / 0.5683 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.665e-05/0.324, allocations: 7.438 kB / 0.5683 GB, free: 10.7 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.324, allocations: 7.938 kB / 0.5683 GB, free: 10.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0288/0.3528, allocations: 5.644 MB / 0.5738 GB, free: 5.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.425/8.777, allocations: 11.31 kB / 0.5738 GB, free: 5.09 MB / 414.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.52759050700115] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.84999358499772 8.868209132 8.545969201 Calling exit ...