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.001571/0.001571, allocations: 109.4 kB / 19.8 MB, free: 2.5 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.00225/0.00225, allocations: 219.8 kB / 23 MB, free: 5.582 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.498/1.498, allocations: 230.2 MB / 256.2 MB, free: 8.531 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.2453/0.2453, allocations: 46.89 MB / 359.4 MB, free: 4.902 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.00261/0.00261, allocations: 83.86 kB / 0.4941 GB, free: 9.043 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3237, allocations: 65.99 MB / 0.5585 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001652/0.3254, allocations: 487.6 kB / 0.559 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003799/0.3292, allocations: 2.439 MB / 0.5614 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.351e-05/0.3292, allocations: 0 / 0.5614 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.3292, allocations: 3.938 kB / 0.5614 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.68e-06/0.3292, allocations: 0 / 0.5614 GB, free: 2.254 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.002816/0.3321, allocations: 1.155 MB / 0.5625 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.513e-05/0.3321, allocations: 4 kB / 0.5625 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.782e-05/0.3321, allocations: 4 kB / 0.5625 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.3322, allocations: 4 kB / 0.5625 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.915e-05/0.3322, allocations: 0 / 0.5625 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-06/0.3322, allocations: 0 / 0.5625 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001741/0.3339, allocations: 1.034 MB / 0.5635 GB, free: 52 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.284e-05/0.3339, allocations: 3.984 kB / 0.5635 GB, free: 48 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.725e-05/0.334, allocations: 0 / 0.5635 GB, free: 48 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006807/0.3346, allocations: 445 kB / 0.564 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3346, allocations: 0 / 0.564 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3346, allocations: 8 kB / 0.564 GB, free: 15.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.3346, allocations: 0 / 0.564 GB, free: 15.61 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.0005415/0.3352, allocations: 440.3 kB / 0.5644 GB, free: 15.12 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3352, allocations: 12.03 kB / 0.5644 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.288e-05/0.3353, allocations: 34.73 kB / 0.5644 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.3353, allocations: 4.875 kB / 0.5644 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.3354, allocations: 164.3 kB / 0.5646 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-06/0.3354, allocations: 384 / 0.5646 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.3354, allocations: 384 / 0.5646 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.234e-05/0.3355, allocations: 37.83 kB / 0.5646 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3355, allocations: 0 / 0.5646 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.3356, allocations: 0 / 0.5646 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3356, allocations: 0 / 0.5646 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.274e-05/0.3356, allocations: 8 kB / 0.5647 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.3357, allocations: 145.7 kB / 0.5648 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.982e-05/0.3358, allocations: 22.59 kB / 0.5648 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.762e-05/0.3358, allocations: 12.86 kB / 0.5648 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.3358, allocations: 0 / 0.5648 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.772e-05/0.3359, allocations: 60.2 kB / 0.5649 GB, free: 14.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3359, allocations: 3.938 kB / 0.5649 GB, free: 14.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001903/0.3361, allocations: 67.39 kB / 0.5649 GB, free: 14.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.3361, allocations: 77.11 kB / 0.565 GB, free: 14.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.762e-05/0.3362, allocations: 93.81 kB / 0.5651 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.3362, allocations: 33.64 kB / 0.5651 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.404e-05/0.3362, allocations: 84.27 kB / 0.5652 GB, free: 14.1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.3362, allocations: 0 / 0.5652 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.3363, allocations: 13.72 kB / 0.5652 GB, free: 14.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3364, allocations: 314.8 kB / 0.5655 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.3364, allocations: 3.984 kB / 0.5655 GB, free: 13.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-06/0.3364, allocations: 0 / 0.5655 GB, free: 13.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.682e-05/0.3365, allocations: 60.27 kB / 0.5656 GB, free: 13.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3365, allocations: 64 / 0.5656 GB, free: 13.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.471e-05/0.3366, allocations: 67.41 kB / 0.5657 GB, free: 13.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/0.3366, allocations: 37.62 kB / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3366, allocations: 0 / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.3366, allocations: 0 / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.685e-06/0.3366, allocations: 3.938 kB / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.3366, allocations: 0 / 0.5657 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.3367, allocations: 4 kB / 0.5657 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-06/0.3367, 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 9.559e-05/0.3368, allocations: 139.6 kB / 0.5658 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.3368, allocations: 11.88 kB / 0.5659 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.546e-06/0.3368, allocations: 3.125 kB / 0.5659 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3368, allocations: 0 / 0.5659 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.3368, allocations: 4 kB / 0.5659 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3368, allocations: 0 / 0.5659 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.3369, allocations: 145.7 kB / 0.566 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3369, allocations: 4 kB / 0.566 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3369, allocations: 0 / 0.566 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.3369, allocations: 3.938 kB / 0.566 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.3369, allocations: 0 / 0.566 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3369, allocations: 4 kB / 0.566 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3369, allocations: 0 / 0.566 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000113/0.337, allocations: 90.83 kB / 0.5661 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.013e-05/0.3371, allocations: 85.05 kB / 0.5662 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.3371, allocations: 3.938 kB / 0.5662 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.232e-05/0.3371, allocations: 4 kB / 0.5662 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.3371, allocations: 3.984 kB / 0.5662 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3371, allocations: 4.031 kB / 0.5662 GB, free: 12.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.592e-05/0.3372, allocations: 75.28 kB / 0.5663 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3372, allocations: 0 / 0.5663 GB, free: 12.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000477/0.3376, 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.001059/0.3387, allocations: 0.9003 MB / 0.5673 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.3388, allocations: 63.33 kB / 0.5674 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3388, allocations: 4.062 kB / 0.5674 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.984e-05/0.3388, allocations: 55.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.0001233/0.339, allocations: 4 kB / 0.5674 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.3394, allocations: 190.2 kB / 0.5676 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.3397, allocations: 0.669 MB / 0.5683 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.081e-06/0.3397, allocations: 0 / 0.5683 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.453e-05/0.3397, allocations: 7.438 kB / 0.5683 GB, free: 10.71 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3397, allocations: 3.938 kB / 0.5683 GB, free: 10.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02908/0.3688, allocations: 5.664 MB / 0.5738 GB, free: 5.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.488/8.857, allocations: 5.781 kB / 0.5738 GB, free: 5.094 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.639702365995618] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.929739056009566 8.946088599 8.607917225 Calling exit ...