Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.506/1.506, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 46.92 MB / 357.8 MB, free: 10.31 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 67.91 kB / 0.4916 GB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.12, allocations: 65.99 MB / 0.5561 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003995/0.124, allocations: 2.326 MB / 0.5583 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.1259, allocations: 0.9075 MB / 0.5592 GB, free: 2.586 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.1261, allocations: 11.94 kB / 0.5592 GB, free: 2.574 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.1263, allocations: 35.53 kB / 0.5593 GB, free: 2.539 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003143/0.1266, allocations: 71.31 kB / 0.5593 GB, free: 2.469 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005638/0.1272, allocations: 183.7 kB / 0.5595 GB, free: 2.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006299/0.1278, allocations: 386.9 kB / 0.5599 GB, free: 1.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.1281, allocations: 100.2 kB / 0.56 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003539/0.1285, allocations: 167.3 kB / 0.5601 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003059/0.1288, allocations: 159.2 kB / 0.5603 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.138e-05/0.1289, allocations: 36 kB / 0.5603 GB, free: 1.457 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.129, allocations: 51.98 kB / 0.5604 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.1291, allocations: 95.67 kB / 0.5605 GB, free: 1.312 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.1293, allocations: 171 kB / 0.5606 GB, free: 1.145 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000572/0.1299, allocations: 410.3 kB / 0.561 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1299, allocations: 4 kB / 0.561 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1299, allocations: 0 / 0.561 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.1299, allocations: 0 / 0.561 GB, free: 0.7383 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.001599/0.1315, allocations: 0.665 MB / 0.5617 GB, free: 24 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.1316, allocations: 8.031 kB / 0.5617 GB, free: 16 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.489e-05/0.1316, allocations: 24.88 kB / 0.5617 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.1318, allocations: 83.2 kB / 0.5618 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005203/0.1323, allocations: 88.55 kB / 0.5619 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006604/0.1329, allocations: 368.1 kB / 0.5622 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.133, allocations: 32.97 kB / 0.5622 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.691e-05/0.1331, allocations: 48.11 kB / 0.5623 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006201/0.1337, allocations: 298 kB / 0.5626 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.1337, allocations: 7.938 kB / 0.5626 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.1337, allocations: 12 kB / 0.5626 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1338, allocations: 8 kB / 0.5626 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005138/0.1343, allocations: 222.5 kB / 0.5628 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.1361, allocations: 0.886 MB / 0.5637 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000593/0.1366, allocations: 247.8 kB / 0.5639 GB, free: 13.6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.1369, allocations: 129.5 kB / 0.564 GB, free: 13.47 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.137, allocations: 4.328 kB / 0.564 GB, free: 13.46 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005274/0.1375, allocations: 270.2 kB / 0.5643 GB, free: 13.19 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 2.434e-06/0.1375, allocations: 0 / 0.5643 GB, free: 13.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.00357/0.1411, allocations: 1.324 MB / 0.5656 GB, free: 11.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.1411, allocations: 63.84 kB / 0.5656 GB, free: 11.74 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/0.1415, allocations: 266.9 kB / 0.5659 GB, free: 11.47 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.1415, allocations: 41.69 kB / 0.5659 GB, free: 11.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.1417, allocations: 185 kB / 0.5661 GB, free: 11.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.1419, allocations: 178.5 kB / 0.5663 GB, free: 11.06 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.142, allocations: 98.23 kB / 0.5664 GB, free: 10.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.1422, allocations: 346.8 kB / 0.5667 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.1426, allocations: 141 kB / 0.5668 GB, free: 10.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004576/0.143, allocations: 297.2 kB / 0.5671 GB, free: 10.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008264/0.1438, allocations: 482 kB / 0.5676 GB, free: 9.574 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1439, allocations: 0 / 0.5676 GB, free: 9.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001045/0.1449, allocations: 0.5126 MB / 0.5681 GB, free: 9.055 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.1449, allocations: 8 kB / 0.5681 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.1449, allocations: 8 kB / 0.5681 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.9e-05/0.145, allocations: 15.94 kB / 0.5681 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004703/0.1454, allocations: 111.8 kB / 0.5682 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.982e-05/0.1455, allocations: 11.94 kB / 0.5682 GB, free: 8.902 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.1457, allocations: 23.98 kB / 0.5683 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.1458, allocations: 23.98 kB / 0.5683 GB, free: 8.855 MB / 430.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,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 (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.0002526/0.146, allocations: 192 kB / 0.5685 GB, free: 8.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.628e-05/0.1461, allocations: 35.77 kB / 0.5685 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.1471, allocations: 467.1 kB / 0.5689 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-06/0.1471, allocations: 12 kB / 0.569 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1471, allocations: 0 / 0.569 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.1471, allocations: 3.984 kB / 0.569 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.1491, allocations: 1.085 MB / 0.57 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1491, allocations: 0 / 0.57 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.1495, allocations: 91.88 kB / 0.5701 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-05/0.1495, allocations: 7.938 kB / 0.5701 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.1495, allocations: 12 kB / 0.5701 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.767e-06/0.1495, allocations: 11.92 kB / 0.5701 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1495, allocations: 8.219 kB / 0.5701 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.1509, allocations: 0.7499 MB / 0.5709 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.151, allocations: 116.8 kB / 0.571 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.151, allocations: 16 kB / 0.571 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1513, allocations: 19.98 kB / 0.571 GB, free: 5.902 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.1514, allocations: 40.39 kB / 0.5711 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.1514, allocations: 19.98 kB / 0.5711 GB, free: 5.844 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002101/0.1516, allocations: 190 kB / 0.5713 GB, free: 5.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1516, allocations: 0 / 0.5713 GB, free: 5.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004652/0.1521, allocations: 83.94 kB / 0.5713 GB, free: 5.578 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (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.001659/0.1537, allocations: 1.325 MB / 0.5726 GB, free: 4.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008396/0.1546, allocations: 379.8 kB / 0.573 GB, free: 3.832 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1546, allocations: 256 / 0.573 GB, free: 3.832 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003874/0.155, allocations: 190.3 kB / 0.5732 GB, free: 3.648 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000446/0.1554, allocations: 55.64 kB / 0.5732 GB, free: 3.598 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005623/0.161, allocations: 3.857 MB / 0.577 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004993/0.1615, allocations: 0.8173 MB / 0.5778 GB, free: 14.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.1618, allocations: 59.25 kB / 0.5779 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/0.162, allocations: 147.4 kB / 0.578 GB, free: 14.43 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.162, allocations: 4 kB / 0.578 GB, free: 14.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.1902, allocations: 7.473 MB / 0.5853 GB, free: 7.035 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.93/9.121, allocations: 4 kB / 0.5853 GB, free: 7.031 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.343552235979587] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.x', 'yMean', 'yRectifiedMean', 'yRootMeanSquare', 'yHarmonicCos', 'yHarmonicSin', 'yHarmonicAbs', 'yHarmonicArg'] 9.2496900690021 9.548070177 9.415115162 Calling exit ...