Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001568/0.001568, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001643/0.001643, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.366/1.366, allocations: 230.5 MB / 258.2 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 46.93 MB / 361.6 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 75.89 kB / 0.497 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3149, allocations: 66.08 MB / 0.5615 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004151/0.3191, allocations: 2.324 MB / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.3211, allocations: 0.9241 MB / 0.5647 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.3212, allocations: 11.88 kB / 0.5647 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.3214, allocations: 31.55 kB / 0.5647 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002627/0.3217, allocations: 67.39 kB / 0.5648 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004415/0.3221, allocations: 187.6 kB / 0.565 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004317/0.3225, allocations: 386.9 kB / 0.5653 GB, free: 376 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/0.3228, allocations: 100.5 kB / 0.5654 GB, free: 272 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.3231, allocations: 163.3 kB / 0.5656 GB, free: 108 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002524/0.3233, allocations: 159.2 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.3234, allocations: 44 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.3235, allocations: 47.98 kB / 0.5658 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.3236, allocations: 95.62 kB / 0.5659 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.3238, allocations: 167.1 kB / 0.5661 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005555/0.3243, allocations: 420.2 kB / 0.5665 GB, free: 15.19 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3243, allocations: 3.984 kB / 0.5665 GB, free: 15.19 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3243, allocations: 0 / 0.5665 GB, free: 15.19 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.3243, allocations: 0 / 0.5665 GB, free: 15.19 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00141/0.3258, allocations: 0.7189 MB / 0.5672 GB, free: 14.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3258, allocations: 12.03 kB / 0.5672 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.838e-05/0.3259, allocations: 28.75 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.326, allocations: 87.19 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004689/0.3265, allocations: 80.61 kB / 0.5674 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005445/0.327, allocations: 307 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.355e-05/0.327, allocations: 25.03 kB / 0.5677 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.271e-05/0.3271, allocations: 48.08 kB / 0.5677 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006196/0.3277, allocations: 305.9 kB / 0.568 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.3278, allocations: 7.953 kB / 0.568 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/0.3278, allocations: 12 kB / 0.568 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.3278, allocations: 11.94 kB / 0.5681 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004821/0.3283, allocations: 218.5 kB / 0.5683 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.3298, allocations: 0.863 MB / 0.5691 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004862/0.3303, allocations: 227.6 kB / 0.5693 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.3306, allocations: 129.5 kB / 0.5694 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.708e-05/0.3306, allocations: 20.23 kB / 0.5695 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004715/0.3311, allocations: 246.5 kB / 0.5697 GB, free: 11.72 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 1.804e-06/0.3311, allocations: 8 kB / 0.5697 GB, free: 11.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.001984/0.3331, allocations: 0.8378 MB / 0.5705 GB, free: 10.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.3331, allocations: 59.84 kB / 0.5706 GB, free: 10.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.3334, allocations: 264.2 kB / 0.5708 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.3335, allocations: 45.69 kB / 0.5709 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3336, allocations: 181 kB / 0.5711 GB, free: 10.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.3337, allocations: 190.4 kB / 0.5712 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.3339, allocations: 94.33 kB / 0.5713 GB, free: 10.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3341, allocations: 350.8 kB / 0.5717 GB, free: 9.664 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002711/0.3343, allocations: 129.2 kB / 0.5718 GB, free: 9.539 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/0.3347, allocations: 310.2 kB / 0.5721 GB, free: 9.168 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007187/0.3355, allocations: 471 kB / 0.5725 GB, free: 8.637 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3355, allocations: 0 / 0.5725 GB, free: 8.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009094/0.3364, allocations: 0.5089 MB / 0.573 GB, free: 8.121 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3364, allocations: 14.34 kB / 0.573 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3364, allocations: 4 kB / 0.573 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.3364, allocations: 15.94 kB / 0.5731 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.3369, allocations: 111.8 kB / 0.5732 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/0.3369, allocations: 8 kB / 0.5732 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.3371, allocations: 24.12 kB / 0.5732 GB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.3371, allocations: 27.92 kB / 0.5732 GB, free: 7.922 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0002362/0.3374, allocations: 183 kB / 0.5734 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.998e-05/0.3374, allocations: 35.77 kB / 0.5734 GB, free: 7.699 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009113/0.3383, allocations: 473.5 kB / 0.5739 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.3383, allocations: 8 kB / 0.5739 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3384, allocations: 0 / 0.5739 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.3384, allocations: 3.984 kB / 0.5739 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.3402, allocations: 1.06 MB / 0.5749 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3402, allocations: 4 kB / 0.5749 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003802/0.3406, allocations: 83.89 kB / 0.575 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.3406, allocations: 7.938 kB / 0.575 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.3406, allocations: 15.98 kB / 0.575 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.3406, allocations: 4 kB / 0.575 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.3406, allocations: 7.938 kB / 0.575 GB, free: 5.961 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.3419, allocations: 0.7481 MB / 0.5758 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.934e-05/0.3419, allocations: 39.77 kB / 0.5758 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.408e-05/0.342, allocations: 23.92 kB / 0.5758 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.3422, allocations: 12 kB / 0.5758 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.85e-05/0.3423, allocations: 40.36 kB / 0.5759 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.3423, allocations: 23.98 kB / 0.5759 GB, free: 5.039 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002052/0.3425, allocations: 195.1 kB / 0.5761 GB, free: 4.848 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3425, allocations: 0 / 0.5761 GB, free: 4.848 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004349/0.343, allocations: 76 kB / 0.5762 GB, free: 4.773 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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 (56): * Single equations (assignments): 51 * 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.001611/0.3446, allocations: 1.308 MB / 0.5774 GB, free: 3.414 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007997/0.3454, allocations: 386.5 kB / 0.5778 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3454, allocations: 0 / 0.5778 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003476/0.3457, allocations: 187.9 kB / 0.578 GB, free: 2.859 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.3462, allocations: 52.97 kB / 0.578 GB, free: 2.809 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005199/0.3514, allocations: 3.865 MB / 0.5818 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.3519, allocations: 0.8173 MB / 0.5826 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002002/0.3521, allocations: 59.19 kB / 0.5827 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002396/0.3523, allocations: 155.3 kB / 0.5828 GB, free: 13.62 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3523, allocations: 0 / 0.5828 GB, free: 13.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.3821, allocations: 7.861 MB / 0.5905 GB, free: 5.875 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.29, allocations: 3.938 kB / 0.5905 GB, free: 5.871 MB / 430.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.021938824036624] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 11.44941977999406 11.464353149 11.137021419 Calling exit ...