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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.002073/0.002073, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001009, allocations: 89.59 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.474e-05/4.481e-05, allocations: 8 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1597, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.6002, allocations: 79.42 MB / 481.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.6004, allocations: 62.53 kB / 481.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01683/0.6173, allocations: 5.945 MB / 487.5 MB, free: 5.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6173, allocations: 0 / 487.5 MB, free: 5.125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.445e-05/0.6174, allocations: 8 kB / 487.6 MB, free: 5.117 MB / 346.7 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.0009724/0.6183, allocations: 0.6108 MB / 488.2 MB, free: 4.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.6184, allocations: 8.031 kB / 488.2 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.454e-05/0.6185, allocations: 57.34 kB / 488.2 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002989/0.6188, allocations: 72.45 kB / 488.3 MB, free: 4.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.6192, allocations: 353.6 kB / 488.6 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.6193, allocations: 20.31 kB / 488.7 MB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.6193, allocations: 33.78 kB / 488.7 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.6197, allocations: 227 kB / 488.9 MB, free: 3.824 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.6197, allocations: 0 / 488.9 MB, free: 3.824 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.6197, allocations: 15.11 kB / 488.9 MB, free: 3.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.6198, allocations: 8 kB / 488.9 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002545/0.62, allocations: 136.8 kB / 489.1 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.6212, allocations: 0.8103 MB / 489.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.6214, allocations: 151.3 kB / 490 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.6216, allocations: 72.61 kB / 490.1 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.6216, allocations: 12.17 kB / 490.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.6219, allocations: 212.2 kB / 490.3 MB, free: 2.656 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.843e-06/0.6219, allocations: 4 kB / 490.3 MB, free: 2.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0004006/0.6223, allocations: 252.7 kB / 490.6 MB, free: 2.453 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.6224, allocations: 63.3 kB / 490.6 MB, free: 2.379 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.6226, allocations: 276.2 kB / 490.9 MB, free: 2.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.6226, allocations: 42.09 kB / 490.9 MB, free: 2.113 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.148e-05/0.6227, allocations: 186.4 kB / 491.1 MB, free: 1.973 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/0.6228, allocations: 86.95 kB / 491.2 MB, free: 1.891 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-05/0.6228, allocations: 8 kB / 491.2 MB, free: 1.883 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.011e-05/0.6229, allocations: 346.8 kB / 491.6 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.623, allocations: 76.75 kB / 491.6 MB, free: 1.457 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.6232, allocations: 210.4 kB / 491.8 MB, free: 1.191 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.6234, allocations: 123 kB / 492 MB, free: 1.066 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.6234, allocations: 0 / 492 MB, free: 1.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004717/0.6238, allocations: 387.9 kB / 492.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.6239, allocations: 33.7 kB / 492.4 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.6239, allocations: 5.188 kB / 492.4 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.6239, allocations: 8.047 kB / 492.4 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.6242, allocations: 84.34 kB / 492.5 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.6242, allocations: 13.42 kB / 492.5 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.6245, allocations: 43.83 kB / 492.5 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.6245, allocations: 16 kB / 492.5 MB, free: 484 kB / 346.7 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 () * 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 7.931e-05/0.6246, allocations: 148.6 kB / 492.7 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.027e-05/0.6247, allocations: 35.53 kB / 492.7 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003925/0.6251, allocations: 257.3 kB / 493 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.6251, allocations: 4 kB / 493 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.6251, allocations: 0 / 493 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.6251, allocations: 7.938 kB / 493 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003452/0.6254, allocations: 366.2 kB / 493.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.6255, allocations: 3.938 kB / 493.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.6257, allocations: 51.91 kB / 493.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.6257, allocations: 0 / 493.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.743e-05/0.6257, allocations: 11.98 kB / 493.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.6258, allocations: 0 / 493.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6258, allocations: 2.375 kB / 493.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.6263, allocations: 385.1 kB / 493.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.232e-05/0.6264, allocations: 112.7 kB / 493.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.6265, allocations: 12.06 kB / 493.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.6267, allocations: 23.97 kB / 493.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.6268, allocations: 23.97 kB / 493.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.6269, allocations: 15.98 kB / 494 MB, free: 14.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002127/0.6271, allocations: 222.2 kB / 494.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6271, allocations: 0 / 494.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003248/0.6274, allocations: 83.83 kB / 494.3 MB, free: 14.64 MB / 362.7 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) * 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.000862/0.6283, allocations: 0.947 MB / 495.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004005/0.6287, allocations: 283.7 kB / 495.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6287, allocations: 0 / 495.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.6289, allocations: 95.92 kB / 495.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.6292, allocations: 42.86 kB / 495.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.6303, allocations: 0.5343 MB / 496.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.6306, allocations: 0.7957 MB / 497 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001863/0.6308, allocations: 50.94 kB / 497 MB, free: 11.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.631, allocations: 119.3 kB / 497.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.631, allocations: 0 / 497.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.65, allocations: 6.065 MB / 0.4914 GB, free: 5.855 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.6502, allocations: 157.1 kB / 0.4915 GB, free: 5.629 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.705, allocations: 0 / 0.4915 GB, free: 5.629 MB / 362.7 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)