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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 107.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 64.27 kB / 306.5 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1121, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.004326/0.1165, allocations: 2.326 MB / 359.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.1185, allocations: 0.9308 MB / 360.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002909/0.1188, allocations: 4 kB / 360.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001974/0.1191, allocations: 27.73 kB / 360.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005046/0.1196, allocations: 87.45 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005134/0.1201, allocations: 147.8 kB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006176/0.1208, allocations: 426.9 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/0.121, allocations: 115.5 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004121/0.1214, allocations: 179.3 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/0.1218, allocations: 195.1 kB / 361.5 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.122, allocations: 36 kB / 361.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.1221, allocations: 48 kB / 361.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.1223, allocations: 99.59 kB / 361.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002262/0.1225, allocations: 187 kB / 361.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000563/0.1231, allocations: 406.9 kB / 362.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1231, allocations: 0 / 362.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1231, allocations: 0 / 362.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.73e-05/0.1231, allocations: 0 / 362.3 MB, free: 9.105 MB / 302.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.001962/0.1251, allocations: 0.7171 MB / 363 MB, free: 8.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.1252, allocations: 8.031 kB / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.213e-05/0.1253, allocations: 62.7 kB / 363 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.1256, allocations: 68.44 kB / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006535/0.1263, allocations: 376.3 kB / 363.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.1263, allocations: 28.8 kB / 363.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-05/0.1264, allocations: 32.31 kB / 363.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.127, allocations: 263.2 kB / 363.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.127, allocations: 0 / 363.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.1271, allocations: 8 kB / 363.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1271, allocations: 4 kB / 363.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005066/0.1276, allocations: 185.6 kB / 364 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.1291, allocations: 0.7945 MB / 364.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005391/0.1297, allocations: 190.7 kB / 365 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000251/0.13, allocations: 93.55 kB / 365.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.13, allocations: 3.938 kB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000514/0.1305, allocations: 244.9 kB / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.235e-06/0.1305, allocations: 0 / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001011/0.1316, allocations: 377.1 kB / 365.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.1316, allocations: 63.39 kB / 365.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004217/0.132, allocations: 312.6 kB / 366 MB, free: 5.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.1321, allocations: 41.69 kB / 366.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.1323, allocations: 192.5 kB / 366.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.967e-05/0.1324, allocations: 78.81 kB / 366.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.1325, allocations: 82.06 kB / 366.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1327, allocations: 342.8 kB / 366.8 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.133, allocations: 96.69 kB / 366.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.1334, allocations: 230.6 kB / 367.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006738/0.1341, allocations: 378.5 kB / 367.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.1341, allocations: 0 / 367.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000888/0.135, allocations: 429 kB / 367.9 MB, free: 3.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.235e-05/0.135, allocations: 33.7 kB / 367.9 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.1351, allocations: 4 kB / 367.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.1351, allocations: 8 kB / 367.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.1354, allocations: 76.27 kB / 368 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.1355, allocations: 15.98 kB / 368 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.1358, allocations: 39.67 kB / 368 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.1359, allocations: 19.98 kB / 368.1 MB, free: 2.91 MB / 302.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.0002496/0.1361, allocations: 180.4 kB / 368.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.346e-05/0.1362, allocations: 31.62 kB / 368.3 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007895/0.137, allocations: 310 kB / 368.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/0.137, allocations: 11.88 kB / 368.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.137, allocations: 0 / 368.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.137, allocations: 0 / 368.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004357/0.1375, allocations: 361.2 kB / 368.9 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.1375, allocations: 7.938 kB / 368.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.1377, allocations: 43.95 kB / 369 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1378, allocations: 4.062 kB / 369 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.1378, allocations: 12 kB / 369 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1378, allocations: 0 / 369 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1378, allocations: 0 / 369 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000975/0.1388, allocations: 462.1 kB / 369.4 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.143e-05/0.1389, allocations: 108.7 kB / 369.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.138e-05/0.139, allocations: 12.05 kB / 369.6 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.1392, allocations: 19.98 kB / 369.6 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.1393, allocations: 28 kB / 369.6 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.1393, allocations: 15.97 kB / 369.6 MB, free: 1.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.1395, allocations: 231.1 kB / 369.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1396, allocations: 0 / 369.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.1399, allocations: 71.84 kB / 369.9 MB, free: 0.9375 MB / 302.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.1477/0.2876, allocations: 0.9956 MB / 370.9 MB, free: 19.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008092/0.2884, allocations: 340.4 kB / 371.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2884, allocations: 3.062 kB / 371.3 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.2887, allocations: 121.9 kB / 371.4 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.2891, allocations: 47.91 kB / 371.4 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00412/0.2933, allocations: 3.638 MB / 375.1 MB, free: 17.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.2935, allocations: 0.7889 MB / 375.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000176/0.2937, allocations: 50.28 kB / 375.9 MB, free: 17.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.2938, allocations: 123.3 kB / 376 MB, free: 17.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2938, allocations: 0 / 376 MB, free: 17.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.03/1.324, allocations: 6.593 MB / 382.6 MB, free: 16.04 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/1.324, allocations: 203.7 kB / 382.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.557/3.881, allocations: 3.828 kB / 382.8 MB, free: 15.78 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)