Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.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.001344/0.001344, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001456/0.001456, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.404/1.404, allocations: 230.2 MB / 254.5 MB, free: 15.43 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 59.91 kB / 373.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.107, allocations: 53.32 MB / 426.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003558/0.1105, allocations: 2.291 MB / 429 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.1122, allocations: 0.9541 MB / 429.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.1123, allocations: 8 kB / 429.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.1125, allocations: 39.48 kB / 430 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003374/0.1128, allocations: 111.2 kB / 430.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.1132, allocations: 163.7 kB / 430.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004565/0.1136, allocations: 430.8 kB / 430.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.1138, allocations: 83.5 kB / 430.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002777/0.1141, allocations: 191.2 kB / 430.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.1144, allocations: 191.1 kB / 431.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-05/0.1144, allocations: 40 kB / 431.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.701e-05/0.1145, allocations: 48 kB / 431.2 MB, free: 484 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.74e-05/0.1146, allocations: 103.6 kB / 431.3 MB, free: 380 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.1148, allocations: 179 kB / 431.5 MB, free: 200 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.1153, allocations: 418.2 kB / 431.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1153, allocations: 0 / 431.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1153, allocations: 0 / 431.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.1153, allocations: 0 / 431.9 MB, free: 15.79 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.00152/0.1168, allocations: 0.7363 MB / 432.6 MB, free: 15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1168, allocations: 8.031 kB / 432.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.673e-05/0.1169, allocations: 58.72 kB / 432.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002891/0.1172, allocations: 64.64 kB / 432.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005919/0.1178, allocations: 392.6 kB / 433.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.1178, allocations: 20.81 kB / 433.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.779e-05/0.1179, allocations: 24.38 kB / 433.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.1184, allocations: 259.3 kB / 433.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.1185, allocations: 0 / 433.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.1185, allocations: 8 kB / 433.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1185, allocations: 15.94 kB / 433.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004825/0.119, allocations: 181.6 kB / 433.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1203, allocations: 0.7908 MB / 434.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.1208, allocations: 182.6 kB / 434.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.121, allocations: 87.23 kB / 434.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.1211, allocations: 7.938 kB / 434.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004785/0.1216, allocations: 241 kB / 434.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.934e-06/0.1216, allocations: 0 / 434.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009712/0.1225, allocations: 379.3 kB / 435.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.1226, allocations: 67.41 kB / 435.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003661/0.123, allocations: 320.5 kB / 435.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.123, allocations: 37.7 kB / 435.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1231, allocations: 184.7 kB / 435.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.242e-05/0.1232, allocations: 91.27 kB / 436 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.1233, allocations: 74.06 kB / 436 MB, free: 11.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1235, allocations: 346.8 kB / 436.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/0.1238, allocations: 100.7 kB / 436.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.1241, allocations: 234.5 kB / 436.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006183/0.1247, allocations: 380.6 kB / 437.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1247, allocations: 0 / 437.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007906/0.1255, allocations: 435 kB / 437.5 MB, free: 9.785 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.1256, allocations: 33.7 kB / 437.5 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.1256, allocations: 4 kB / 437.5 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.1256, allocations: 4 kB / 437.5 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.1259, allocations: 71.89 kB / 437.6 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.1259, allocations: 11.94 kB / 437.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.1262, allocations: 39.83 kB / 437.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.1262, allocations: 19.98 kB / 437.7 MB, free: 9.598 MB / 366.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: 20 (rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,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,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * 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.0001848/0.1264, allocations: 171.4 kB / 437.9 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.366e-05/0.1264, allocations: 35.84 kB / 437.9 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007029/0.1271, allocations: 310.1 kB / 438.2 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1271, allocations: 8 kB / 438.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1271, allocations: 0 / 438.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1271, allocations: 0 / 438.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003708/0.1275, allocations: 369.2 kB / 438.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1275, allocations: 64 / 438.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.1277, allocations: 43.91 kB / 438.6 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1277, allocations: 0 / 438.6 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.1278, allocations: 15.92 kB / 438.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1278, allocations: 0 / 438.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1278, allocations: 0 / 438.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009532/0.1287, allocations: 465.4 kB / 439.1 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.57e-05/0.1288, allocations: 116.9 kB / 439.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.251e-05/0.1289, allocations: 8 kB / 439.2 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.1291, allocations: 23.97 kB / 439.2 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.1292, allocations: 23.97 kB / 439.2 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.1292, allocations: 15.98 kB / 439.3 MB, free: 7.914 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.1294, allocations: 231 kB / 439.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1294, allocations: 0 / 439.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003239/0.1298, allocations: 67.89 kB / 439.5 MB, free: 7.621 MB / 366.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: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 6 (pulse.count,mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.00127/0.131, allocations: 1.003 MB / 440.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006578/0.1317, allocations: 321.1 kB / 440.9 MB, free: 6.262 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1317, allocations: 0 / 440.9 MB, free: 6.262 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002725/0.132, allocations: 116.3 kB / 441 MB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.1323, allocations: 54.11 kB / 441 MB, free: 6.098 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004772/0.1371, allocations: 3.487 MB / 444.5 MB, free: 2.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.1375, allocations: 0.7837 MB / 445.3 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001758/0.1377, allocations: 47.03 kB / 445.3 MB, free: 1.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.1379, allocations: 127.4 kB / 445.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1379, allocations: 0 / 445.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2343/0.3721, allocations: 6.96 MB / 452.4 MB, free: 24.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.628/9, allocations: 3.125 kB / 452.4 MB, free: 24.38 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic_fmu --startTime=0 --stopTime=0.5 --stepSize=0.0005 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.22567055793479] Failed to read output from testmodel.py, exit status != 0: 9.088535666000098 9.109595982 8.99048829 Calling exit ...