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.00172/0.00172, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002028/0.002028, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.586/1.586, allocations: 230.5 MB / 258.2 MB, free: 8.012 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.2349/0.2349, allocations: 46.93 MB / 361.6 MB, free: 4.18 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.00292/0.00292, allocations: 75.88 kB / 0.4969 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3612, allocations: 66.1 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001734/0.3629, allocations: 468.4 kB / 0.5619 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004166/0.3671, allocations: 2.458 MB / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.942e-05/0.3671, allocations: 0 / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.321e-05/0.3671, allocations: 4 kB / 0.5643 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.572e-06/0.3672, allocations: 0 / 0.5643 GB, free: 1.395 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.003043/0.3702, allocations: 1.152 MB / 0.5655 GB, free: 248 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.254e-05/0.3703, allocations: 0 / 0.5655 GB, free: 248 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.162e-05/0.3703, allocations: 0 / 0.5655 GB, free: 248 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.3703, allocations: 7.984 kB / 0.5655 GB, free: 240 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.227e-05/0.3703, allocations: 4 kB / 0.5655 GB, free: 236 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.652e-06/0.3703, allocations: 3.938 kB / 0.5655 GB, free: 232 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001907/0.3723, allocations: 1.038 MB / 0.5665 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.959e-06/0.3723, allocations: 0 / 0.5665 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.603e-05/0.3723, allocations: 0 / 0.5665 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007361/0.373, allocations: 449.1 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.373, allocations: 0 / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.373, allocations: 0 / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.373, allocations: 4 kB / 0.5669 GB, free: 14.75 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.0005251/0.3736, allocations: 367.2 kB / 0.5673 GB, free: 14.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.3736, allocations: 12.03 kB / 0.5673 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.832e-05/0.3737, allocations: 42.62 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.65e-05/0.3737, allocations: 0.9375 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.3738, allocations: 102.5 kB / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3738, allocations: 4.375 kB / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.3738, allocations: 4.359 kB / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.504e-05/0.3739, allocations: 29.83 kB / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3739, allocations: 0 / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.3739, allocations: 8 kB / 0.5675 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3739, allocations: 0 / 0.5675 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.828e-05/0.3739, allocations: 0 / 0.5675 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.3741, allocations: 116.8 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.16e-05/0.3741, allocations: 26.53 kB / 0.5676 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.461e-05/0.3741, allocations: 4.859 kB / 0.5676 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.125e-06/0.3742, allocations: 0 / 0.5676 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.08e-05/0.3742, allocations: 68.27 kB / 0.5677 GB, free: 13.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3742, allocations: 0 / 0.5677 GB, free: 13.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001846/0.3744, allocations: 55.41 kB / 0.5677 GB, free: 13.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.3745, allocations: 93.03 kB / 0.5678 GB, free: 13.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.726e-05/0.3745, allocations: 93.81 kB / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3745, allocations: 25.7 kB / 0.5679 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.092e-05/0.3746, allocations: 80.14 kB / 0.568 GB, free: 13.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/0.3746, allocations: 0 / 0.568 GB, free: 13.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.3746, allocations: 17.84 kB / 0.568 GB, free: 13.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3747, allocations: 310.8 kB / 0.5683 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.207e-06/0.3747, allocations: 0 / 0.5683 GB, free: 13.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5e-06/0.3748, allocations: 0 / 0.5683 GB, free: 13.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.079e-05/0.3748, allocations: 64.27 kB / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3748, allocations: 0 / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.345e-05/0.3749, allocations: 67.33 kB / 0.5684 GB, free: 12.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.3749, allocations: 33.64 kB / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.3749, allocations: 8.094 kB / 0.5685 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.945e-05/0.375, allocations: 0 / 0.5685 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.375, allocations: 3.938 kB / 0.5685 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.375, allocations: 3.984 kB / 0.5685 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.452e-05/0.375, allocations: 0 / 0.5685 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.375, allocations: 0 / 0.5685 GB, free: 12.89 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.0001002/0.3751, allocations: 148.3 kB / 0.5686 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.3751, allocations: 7.922 kB / 0.5686 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.087e-05/0.3751, allocations: 3 kB / 0.5686 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.3751, allocations: 4 kB / 0.5686 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3751, allocations: 4 kB / 0.5687 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-06/0.3751, allocations: 0 / 0.5687 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.755e-05/0.3752, allocations: 120.8 kB / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3752, allocations: 0 / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3752, allocations: 0 / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3752, allocations: 3.938 kB / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.3752, allocations: 0 / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.3752, allocations: 4 kB / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3752, allocations: 0 / 0.5688 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.3753, allocations: 94.77 kB / 0.5689 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.564e-06/0.3753, allocations: 7.938 kB / 0.5689 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.3754, allocations: 0 / 0.5689 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.3754, allocations: 0 / 0.5689 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.242e-05/0.3754, allocations: 0 / 0.5689 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.3754, allocations: 4 kB / 0.5689 GB, free: 12.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.803e-05/0.3754, allocations: 75.28 kB / 0.5689 GB, free: 12.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3754, allocations: 0 / 0.5689 GB, free: 12.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004422/0.3759, allocations: 163.6 kB / 0.5691 GB, free: 12.18 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.001051/0.3769, allocations: 0.9007 MB / 0.57 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.377, allocations: 63.34 kB / 0.57 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.377, allocations: 0 / 0.57 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.065e-05/0.3771, allocations: 55.41 kB / 0.5701 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.3772, allocations: 3.938 kB / 0.5701 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000399/0.3776, allocations: 194.3 kB / 0.5703 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3779, allocations: 0.669 MB / 0.5709 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.416e-06/0.3779, allocations: 3.984 kB / 0.5709 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.676e-05/0.3779, allocations: 11.38 kB / 0.571 GB, free: 10.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3779, allocations: 4 kB / 0.571 GB, free: 10.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.4056, allocations: 5.685 MB / 0.5765 GB, free: 4.539 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.21/8.615, allocations: 0 / 0.5765 GB, free: 4.539 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.568017333280295] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.690153894014657 8.706806905 8.330152628 Calling exit ...