Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.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.00161/0.00161, allocations: 108.6 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.002125/0.002125, allocations: 215.4 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.523/1.523, 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.2336/0.2336, allocations: 46.89 MB / 359.4 MB, free: 4.895 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.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean",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.002351/0.002351, allocations: 75.88 kB / 0.4941 GB, free: 9.008 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3301, allocations: 65.98 MB / 0.5586 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00367/0.3338, allocations: 2.337 MB / 0.5608 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.3355, allocations: 0.9202 MB / 0.5617 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.3357, allocations: 7.938 kB / 0.5617 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.3358, allocations: 39.53 kB / 0.5618 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.3361, allocations: 71.33 kB / 0.5619 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000441/0.3365, allocations: 179.7 kB / 0.562 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004422/0.3369, allocations: 390.9 kB / 0.5624 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.3372, allocations: 100 kB / 0.5625 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002644/0.3374, allocations: 155.4 kB / 0.5626 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.3377, allocations: 159.1 kB / 0.5628 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.779e-05/0.3377, allocations: 36 kB / 0.5628 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.3378, allocations: 55.98 kB / 0.5629 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.731e-05/0.3379, allocations: 95.67 kB / 0.563 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.3381, allocations: 167 kB / 0.5631 GB, free: 456 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004971/0.3386, allocations: 416.3 kB / 0.5635 GB, free: 40 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3386, allocations: 0 / 0.5635 GB, free: 40 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3386, allocations: 4 kB / 0.5635 GB, free: 36 kB / 398.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.3386, allocations: 0 / 0.5635 GB, free: 36 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001224/0.3398, allocations: 0.665 MB / 0.5642 GB, free: 15.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.3399, allocations: 8.031 kB / 0.5642 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.34, allocations: 83.27 kB / 0.5643 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004575/0.3405, allocations: 72.67 kB / 0.5643 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005783/0.341, allocations: 384 kB / 0.5647 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.3411, allocations: 21.03 kB / 0.5647 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.082e-05/0.3411, allocations: 40.36 kB / 0.5648 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005965/0.3417, allocations: 297.8 kB / 0.565 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.3417, allocations: 0 / 0.565 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.3418, allocations: 12 kB / 0.5651 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.3418, allocations: 4 kB / 0.5651 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004601/0.3422, allocations: 202.5 kB / 0.5653 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.3438, allocations: 0.8584 MB / 0.5661 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.3442, allocations: 186.8 kB / 0.5663 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.3445, allocations: 88.81 kB / 0.5664 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.3445, allocations: 11.94 kB / 0.5664 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004523/0.3449, allocations: 219.2 kB / 0.5666 GB, free: 12.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.245e-06/0.345, allocations: 4 kB / 0.5666 GB, free: 12.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008656/0.3458, allocations: 373.8 kB / 0.5669 GB, free: 12.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.3459, allocations: 59.34 kB / 0.567 GB, free: 12.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.3462, allocations: 271 kB / 0.5673 GB, free: 12.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.3462, allocations: 29.7 kB / 0.5673 GB, free: 11.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.3464, allocations: 200.9 kB / 0.5675 GB, free: 11.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.612e-05/0.3465, allocations: 103.2 kB / 0.5676 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.3466, allocations: 70.06 kB / 0.5676 GB, free: 11.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.3468, allocations: 350.7 kB / 0.568 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.347, allocations: 84.7 kB / 0.5681 GB, free: 11.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.3474, allocations: 235.1 kB / 0.5683 GB, free: 10.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005758/0.3479, allocations: 348.8 kB / 0.5686 GB, free: 10.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.3479, allocations: 0 / 0.5686 GB, free: 10.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007363/0.3487, allocations: 385.3 kB / 0.569 GB, free: 10.1 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3487, allocations: 4 kB / 0.569 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3487, allocations: 8 kB / 0.569 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.3487, allocations: 4 kB / 0.569 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003141/0.349, allocations: 79.83 kB / 0.5691 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.349, allocations: 8 kB / 0.5691 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.3492, allocations: 35.77 kB / 0.5691 GB, free: 9.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.3493, allocations: 19.94 kB / 0.5691 GB, free: 9.941 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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.0002194/0.3495, allocations: 173.6 kB / 0.5693 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.3495, allocations: 27.81 kB / 0.5693 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000727/0.3503, allocations: 317.2 kB / 0.5696 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3503, allocations: 4 kB / 0.5696 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3503, allocations: 4 kB / 0.5696 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.3503, allocations: 7.984 kB / 0.5696 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.3514, allocations: 0.7362 MB / 0.5704 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3514, allocations: 144 / 0.5704 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.3517, allocations: 47.91 kB / 0.5704 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/0.3517, allocations: 7.984 kB / 0.5704 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.3517, allocations: 11.98 kB / 0.5704 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.3517, allocations: 7.938 kB / 0.5704 GB, free: 8.527 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3517, allocations: 4 kB / 0.5704 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.3528, allocations: 0.5188 MB / 0.5709 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.3529, allocations: 112.9 kB / 0.571 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.752e-05/0.3529, allocations: 8 kB / 0.5711 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.3531, allocations: 19.92 kB / 0.5711 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.3532, allocations: 23.97 kB / 0.5711 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-05/0.3532, allocations: 15.98 kB / 0.5711 GB, free: 7.793 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.3534, allocations: 186 kB / 0.5713 GB, free: 7.609 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3534, allocations: 3.938 kB / 0.5713 GB, free: 7.605 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000415/0.3538, allocations: 71.89 kB / 0.5714 GB, free: 7.535 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001366/0.3552, allocations: 1.08 MB / 0.5724 GB, free: 6.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006242/0.3558, allocations: 248.3 kB / 0.5727 GB, free: 6.188 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3558, allocations: 288 / 0.5727 GB, free: 6.188 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002697/0.3561, allocations: 120.4 kB / 0.5728 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.3565, allocations: 44.75 kB / 0.5728 GB, free: 6.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004462/0.361, allocations: 3.258 MB / 0.576 GB, free: 2.566 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.3614, allocations: 0.7959 MB / 0.5768 GB, free: 1.742 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001664/0.3616, allocations: 47.22 kB / 0.5768 GB, free: 1.695 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.3618, allocations: 127.4 kB / 0.5769 GB, free: 1.57 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3618, allocations: 0 / 0.5769 GB, free: 1.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02929/0.3911, allocations: 6.044 MB / 0.5828 GB, free: 11.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.5/8.891, allocations: 10.42 kB / 0.5829 GB, free: 11.59 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.734460201987531] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'mean.y'] 8.965149206022033 8.985964067 8.643257129 Calling exit ...