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.001217/0.001217, allocations: 111.5 kB / 21.22 MB, free: 0.6484 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.001293/0.001293, allocations: 209.2 kB / 24.51 MB, free: 3.941 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.372/1.372, allocations: 230.5 MB / 258.2 MB, free: 7.797 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.2162/0.2162, allocations: 46.95 MB / 361.6 MB, free: 4.035 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.002232/0.002232, allocations: 79.88 kB / 0.4969 GB, free: 7.594 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2998, allocations: 66.08 MB / 0.5614 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003517/0.3033, allocations: 2.173 MB / 0.5635 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.3048, allocations: 0.8657 MB / 0.5644 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.305, allocations: 11.88 kB / 0.5644 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.3051, allocations: 39.53 kB / 0.5644 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.3053, allocations: 63.39 kB / 0.5645 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.3057, allocations: 187.6 kB / 0.5647 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004061/0.3061, allocations: 387 kB / 0.5651 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.3063, allocations: 100.5 kB / 0.5651 GB, free: 204 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.3066, allocations: 163.4 kB / 0.5653 GB, free: 40 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.3068, allocations: 163.2 kB / 0.5655 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.435e-05/0.3069, allocations: 36 kB / 0.5655 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.307, allocations: 48 kB / 0.5655 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.408e-05/0.3071, allocations: 95.67 kB / 0.5656 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.3072, allocations: 131.3 kB / 0.5658 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004579/0.3077, allocations: 420.4 kB / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3077, allocations: 7.938 kB / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3077, allocations: 0 / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.3077, allocations: 3.938 kB / 0.5662 GB, free: 15.15 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.001237/0.3089, allocations: 0.7189 MB / 0.5669 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.309, allocations: 12.03 kB / 0.5669 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.156e-05/0.309, allocations: 16.8 kB / 0.5669 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.3091, allocations: 79.25 kB / 0.567 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004765/0.3096, allocations: 92.61 kB / 0.5671 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005471/0.3101, allocations: 306.9 kB / 0.5674 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.3102, allocations: 21.03 kB / 0.5674 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.3102, allocations: 56.06 kB / 0.5674 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005677/0.3108, allocations: 298 kB / 0.5677 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.3108, allocations: 11.95 kB / 0.5677 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.3109, allocations: 15.98 kB / 0.5677 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.3109, allocations: 8 kB / 0.5677 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004685/0.3113, allocations: 222.4 kB / 0.568 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.3129, allocations: 0.7773 MB / 0.5687 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000469/0.3133, allocations: 231.4 kB / 0.5689 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.3136, allocations: 133.4 kB / 0.5691 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.3136, allocations: 4.328 kB / 0.5691 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004729/0.3141, allocations: 262.4 kB / 0.5693 GB, free: 11.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.3141, allocations: 0 / 0.5693 GB, free: 11.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.001952/0.316, allocations: 0.8418 MB / 0.5701 GB, free: 10.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.3161, allocations: 59.84 kB / 0.5702 GB, free: 10.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.3164, allocations: 268.2 kB / 0.5705 GB, free: 10.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.3164, allocations: 41.7 kB / 0.5705 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.3165, allocations: 177 kB / 0.5707 GB, free: 10.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.3167, allocations: 190.4 kB / 0.5708 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.3169, allocations: 102.3 kB / 0.5709 GB, free: 10.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.317, allocations: 350.8 kB / 0.5713 GB, free: 9.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.3173, allocations: 133.2 kB / 0.5714 GB, free: 9.586 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004301/0.3177, allocations: 302.2 kB / 0.5717 GB, free: 9.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.3185, allocations: 483 kB / 0.5722 GB, free: 8.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3185, allocations: 4 kB / 0.5722 GB, free: 8.676 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008629/0.3193, allocations: 0.5011 MB / 0.5726 GB, free: 8.168 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3193, allocations: 11.94 kB / 0.5727 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3193, allocations: 8 kB / 0.5727 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.3194, allocations: 15.94 kB / 0.5727 GB, free: 8.133 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004273/0.3198, allocations: 111.8 kB / 0.5728 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.3198, allocations: 11.98 kB / 0.5728 GB, free: 8.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.32, allocations: 24 kB / 0.5728 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.3201, allocations: 27.98 kB / 0.5728 GB, free: 7.961 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.0002326/0.3203, allocations: 179 kB / 0.573 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.138e-05/0.3204, allocations: 43.69 kB / 0.5731 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008867/0.3212, allocations: 465.5 kB / 0.5735 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3213, allocations: 8 kB / 0.5735 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3213, allocations: 0 / 0.5735 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3213, allocations: 0 / 0.5735 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.3231, allocations: 1.01 MB / 0.5745 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.3231, allocations: 11.92 kB / 0.5745 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003685/0.3235, allocations: 83.89 kB / 0.5746 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.3235, allocations: 12.16 kB / 0.5746 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/0.3235, allocations: 15.98 kB / 0.5746 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.3235, allocations: 4 kB / 0.5746 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3235, allocations: 3.938 kB / 0.5746 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.3249, allocations: 0.7479 MB / 0.5754 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.841e-05/0.3249, allocations: 35.83 kB / 0.5754 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.945e-05/0.325, allocations: 15.94 kB / 0.5754 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.3252, allocations: 27.98 kB / 0.5754 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.652e-05/0.3253, allocations: 40.3 kB / 0.5755 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.3253, allocations: 23.98 kB / 0.5755 GB, free: 5.125 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001937/0.3255, allocations: 191.1 kB / 0.5757 GB, free: 4.938 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3255, allocations: 0 / 0.5757 GB, free: 4.938 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000404/0.3259, allocations: 80 kB / 0.5758 GB, free: 4.859 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.001538/0.3275, allocations: 1.312 MB / 0.577 GB, free: 3.496 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007379/0.3282, allocations: 375.5 kB / 0.5774 GB, free: 3.133 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3282, allocations: 4.062 kB / 0.5774 GB, free: 3.129 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.3286, allocations: 186.4 kB / 0.5776 GB, free: 2.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.329, allocations: 57.19 kB / 0.5776 GB, free: 2.895 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005438/0.3344, allocations: 3.846 MB / 0.5814 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.3347, allocations: 221.9 kB / 0.5816 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002319/0.3349, allocations: 55.53 kB / 0.5816 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.3352, allocations: 155.4 kB / 0.5818 GB, free: 14.33 MB / 430.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3352, allocations: 0 / 0.5818 GB, free: 14.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.3649, allocations: 7.944 MB / 0.5896 GB, free: 6.535 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.57, allocations: 7.5 kB / 0.5896 GB, free: 6.531 MB / 430.1 MB " [Timeout remaining time 648] (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.325779141974635] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 11.731901641003788 11.758697355 11.446009574 Calling exit ...