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.001241/0.00124, allocations: 96.91 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001596/0.001596, allocations: 207.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003452, allocations: 4 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002947/0.1342, allocations: 1.868 MB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.1361, allocations: 0.8496 MB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.1364, allocations: 7.938 kB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.1366, allocations: 23.77 kB / 360.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004495/0.137, allocations: 95.66 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.1374, allocations: 107.7 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.1377, allocations: 235.5 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.138, allocations: 98.12 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.1382, allocations: 135.4 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.1385, allocations: 155.3 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.908e-05/0.1385, allocations: 16 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.586e-05/0.1386, allocations: 24 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.16e-05/0.1387, allocations: 59.73 kB / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1388, allocations: 85.45 kB / 361.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000323/0.1391, allocations: 295.5 kB / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1391, allocations: 0 / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1391, allocations: 0 / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1392, allocations: 4 kB / 362.2 MB, free: 9.734 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.001379/0.1405, allocations: 0.6392 MB / 362.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1406, allocations: 12.03 kB / 362.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.077e-05/0.1407, allocations: 54.48 kB / 362.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.141, allocations: 67.5 kB / 363 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005804/0.1416, allocations: 367.3 kB / 363.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.1416, allocations: 28.42 kB / 363.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.666e-05/0.1417, allocations: 31.95 kB / 363.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005607/0.1422, allocations: 255.1 kB / 363.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1423, allocations: 8 kB / 363.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.1423, allocations: 11.98 kB / 363.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.1423, allocations: 11.98 kB / 363.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005129/0.1429, allocations: 197.6 kB / 363.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.1444, allocations: 0.8026 MB / 364.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/0.1449, allocations: 206.4 kB / 364.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1449, allocations: 4.188 kB / 364.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005079/0.1454, allocations: 245.2 kB / 365.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.354e-06/0.1455, allocations: 0 / 365.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009872/0.1464, allocations: 416.9 kB / 365.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.1465, allocations: 59.41 kB / 365.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003417/0.1469, allocations: 316.5 kB / 365.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.316e-05/0.1469, allocations: 41.69 kB / 365.9 MB, free: 5.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.1471, allocations: 184.6 kB / 366.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.954e-05/0.1471, allocations: 82.8 kB / 366.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.815e-05/0.1472, allocations: 12 kB / 366.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1473, allocations: 346.8 kB / 366.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002696/0.1476, allocations: 104.7 kB / 366.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003632/0.148, allocations: 251 kB / 366.9 MB, free: 4.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.1483, allocations: 161.6 kB / 367.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1483, allocations: 4 kB / 367.1 MB, free: 4.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008274/0.1492, allocations: 444.9 kB / 367.5 MB, free: 4.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.665e-05/0.1492, allocations: 37.69 kB / 367.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1492, allocations: 4 kB / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.1492, allocations: 12.25 kB / 367.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.1496, allocations: 79.89 kB / 367.6 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.1496, allocations: 11.89 kB / 367.6 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.1499, allocations: 47.67 kB / 367.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.1499, allocations: 19.98 kB / 367.7 MB, free: 3.93 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 ($PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.mean.y_last,mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002092/0.1501, allocations: 163.5 kB / 367.9 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.246e-05/0.1502, allocations: 31.62 kB / 367.9 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007702/0.151, allocations: 334.1 kB / 368.2 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/0.151, allocations: 4 kB / 368.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.151, allocations: 0 / 368.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.151, allocations: 7.938 kB / 368.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.1514, allocations: 357.2 kB / 368.6 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1514, allocations: 3.984 kB / 368.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002329/0.1517, allocations: 47.97 kB / 368.6 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.1517, allocations: 4 kB / 368.6 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.1517, allocations: 7.984 kB / 368.6 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.1517, allocations: 4 kB / 368.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1517, allocations: 0 / 368.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000953/0.1527, allocations: 484.9 kB / 369.1 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-05/0.1528, allocations: 108.7 kB / 369.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.348e-05/0.1528, allocations: 8.062 kB / 369.2 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.1531, allocations: 27.97 kB / 369.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.149e-05/0.1532, allocations: 27.95 kB / 369.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.1532, allocations: 15.94 kB / 369.3 MB, free: 2.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.1534, allocations: 231 kB / 369.5 MB, free: 1.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1534, allocations: 0 / 369.5 MB, free: 1.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000334/0.1538, allocations: 67.84 kB / 369.6 MB, free: 1.93 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001242/0.155, allocations: 1.023 MB / 370.6 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006573/0.1557, allocations: 351.7 kB / 371 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1557, allocations: 4 kB / 371 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002783/0.156, allocations: 128.9 kB / 371.1 MB, free: 404 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.1563, allocations: 45.64 kB / 371.1 MB, free: 360 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1768/0.3331, allocations: 3.92 MB / 375.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.3336, allocations: 0.7993 MB / 375.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002534/0.3338, allocations: 45.06 kB / 375.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.3341, allocations: 120.9 kB / 376 MB, free: 15.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3341, allocations: 0 / 376 MB, free: 15.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.3583, allocations: 5.956 MB / 382 MB, free: 14.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.3585, allocations: 180.5 kB / 382.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.27, allocations: 3.5 kB / 382.2 MB, free: 14.53 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/linux/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)