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.0009357/0.0009358, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008734/0.0008737, allocations: 95.11 kB / 297.2 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002057/0.0002057, allocations: 4 kB / 358 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1951, allocations: 51.49 MB / 409.5 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08971/0.2849, allocations: 79.49 MB / 489 MB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.2852, allocations: 63.97 kB / 489 MB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01772/0.3029, allocations: 5.964 MB / 495 MB, free: 5.043 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3029, allocations: 0 / 495 MB, free: 5.043 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.303, allocations: 12 kB / 495 MB, free: 5.031 MB / 362.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.001199/0.3042, allocations: 0.6709 MB / 495.7 MB, free: 4.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3042, allocations: 8.031 kB / 495.7 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.521e-05/0.3043, allocations: 66.47 kB / 495.8 MB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.3046, allocations: 67.5 kB / 495.8 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.3051, allocations: 351.2 kB / 496.2 MB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.3052, allocations: 28.39 kB / 496.2 MB, free: 3.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.3052, allocations: 35.98 kB / 496.2 MB, free: 3.715 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.3058, allocations: 255.2 kB / 496.5 MB, free: 3.457 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.3058, allocations: 4 kB / 496.5 MB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.3058, allocations: 8 kB / 496.5 MB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3058, allocations: 4 kB / 496.5 MB, free: 3.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005047/0.3064, allocations: 213.5 kB / 496.7 MB, free: 3.234 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.3077, allocations: 0.8181 MB / 497.5 MB, free: 2.359 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/0.3082, allocations: 211.2 kB / 497.7 MB, free: 2.145 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.3082, allocations: 4.188 kB / 497.7 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004599/0.3087, allocations: 245.7 kB / 498 MB, free: 1.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.783e-06/0.3087, allocations: 0 / 498 MB, free: 1.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.000917/0.3096, allocations: 407.2 kB / 498.4 MB, free: 1.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3097, allocations: 63.41 kB / 498.4 MB, free: 1.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.31, allocations: 283.6 kB / 498.7 MB, free: 1.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.31, allocations: 37.7 kB / 498.8 MB, free: 1.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.3102, allocations: 196.5 kB / 498.9 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.3102, allocations: 74.83 kB / 499 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.3103, allocations: 12 kB / 499 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3104, allocations: 342.8 kB / 499.4 MB, free: 468 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.3107, allocations: 112.7 kB / 499.5 MB, free: 352 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.311, allocations: 250.3 kB / 499.7 MB, free: 40 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.3114, allocations: 161.7 kB / 499.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3114, allocations: 4 kB / 499.9 MB, free: 15.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007879/0.3122, allocations: 441.6 kB / 0.4886 GB, free: 15.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.3122, allocations: 37.7 kB / 0.4886 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3122, allocations: 4 kB / 0.4886 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3123, allocations: 8 kB / 0.4886 GB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.3126, allocations: 75.83 kB / 0.4887 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.3126, allocations: 11.94 kB / 0.4887 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.3129, allocations: 51.73 kB / 0.4888 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.3129, allocations: 16 kB / 0.4888 GB, free: 15.22 MB / 378.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 () * 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.0001625/0.3131, allocations: 171.4 kB / 0.4889 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.77e-05/0.3131, allocations: 31.62 kB / 0.489 GB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007035/0.3138, allocations: 334.9 kB / 0.4893 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3139, allocations: 8 kB / 0.4893 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3139, allocations: 4 kB / 0.4893 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3139, allocations: 3.953 kB / 0.4893 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.3142, allocations: 369 kB / 0.4897 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3142, allocations: 7.984 kB / 0.4897 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.3145, allocations: 43.97 kB / 0.4897 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.3145, allocations: 0 / 0.4897 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.3145, allocations: 12 kB / 0.4897 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.3145, allocations: 3.984 kB / 0.4897 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3145, allocations: 0 / 0.4897 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009292/0.3155, allocations: 494.6 kB / 0.4902 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.241e-05/0.3156, allocations: 108.7 kB / 0.4903 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.3156, allocations: 12.06 kB / 0.4903 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.3159, allocations: 27.97 kB / 0.4903 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/0.316, allocations: 31.95 kB / 0.4904 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.316, allocations: 8 kB / 0.4904 GB, free: 13.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002022/0.3162, allocations: 227 kB / 0.4906 GB, free: 13.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3162, allocations: 0 / 0.4906 GB, free: 13.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003374/0.3166, allocations: 79.84 kB / 0.4907 GB, free: 13.18 MB / 378.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) * 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.001216/0.3178, allocations: 1.049 MB / 0.4917 GB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00065/0.3184, allocations: 351.5 kB / 0.492 GB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3185, allocations: 4 kB / 0.492 GB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.3187, allocations: 127.9 kB / 0.4922 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.319, allocations: 49.56 kB / 0.4922 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.3214, allocations: 3.935 MB / 0.496 GB, free: 7.508 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.3217, allocations: 0.7956 MB / 0.4968 GB, free: 6.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.3219, allocations: 43.05 kB / 0.4969 GB, free: 6.637 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.3221, allocations: 119.4 kB / 0.497 GB, free: 6.52 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3221, allocations: 4 kB / 0.497 GB, free: 6.516 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/0.3426, allocations: 5.97 MB / 0.5028 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002085/0.3428, allocations: 174.4 kB / 0.503 GB, free: 460 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/2.344, allocations: 0 / 0.503 GB, free: 460 kB / 378.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)