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: translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 121.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00159/0.00159, allocations: 200.7 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 64.12 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.301, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003794/0.3048, allocations: 2.278 MB / 411.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.3068, allocations: 0.9386 MB / 412.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002906/0.3071, allocations: 7.938 kB / 412.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.3074, allocations: 35.53 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005429/0.3079, allocations: 115.2 kB / 412.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.3084, allocations: 167.7 kB / 412.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006404/0.3091, allocations: 430.8 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002984/0.3094, allocations: 123.5 kB / 413.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003951/0.3098, allocations: 179.2 kB / 413.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003787/0.3102, allocations: 187.1 kB / 413.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-05/0.3103, allocations: 40 kB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.3105, allocations: 55.98 kB / 413.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.3106, allocations: 95.61 kB / 413.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002702/0.3109, allocations: 183 kB / 414 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005824/0.3115, allocations: 415.7 kB / 414.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.3115, allocations: 3.984 kB / 414.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3115, allocations: 4 kB / 414.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.3115, allocations: 0 / 414.5 MB, free: 12.37 MB / 334.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.001933/0.3135, allocations: 0.7209 MB / 415.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.3135, allocations: 8.031 kB / 415.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003427/0.3139, allocations: 60.45 kB / 415.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.3145, allocations: 384.3 kB / 415.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.3146, allocations: 24.81 kB / 415.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.734e-05/0.3147, allocations: 32.38 kB / 415.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.3152, allocations: 259.5 kB / 415.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3153, allocations: 3.906 kB / 415.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.3153, allocations: 8 kB / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.3153, allocations: 11.88 kB / 416 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005349/0.3159, allocations: 193.6 kB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.3173, allocations: 0.7827 MB / 416.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.3178, allocations: 190.7 kB / 417.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002457/0.3181, allocations: 88.8 kB / 417.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.3181, allocations: 4 kB / 417.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005368/0.3187, allocations: 252.9 kB / 417.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.783e-06/0.3187, allocations: 0 / 417.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001016/0.3197, allocations: 375.2 kB / 417.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.3198, allocations: 55.41 kB / 417.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/0.3202, allocations: 324.5 kB / 418.2 MB, free: 8.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/0.3203, allocations: 37.7 kB / 418.2 MB, free: 8.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.3204, allocations: 192.5 kB / 418.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.254e-05/0.3205, allocations: 86.8 kB / 418.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.3206, allocations: 74.06 kB / 418.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.3208, allocations: 346.8 kB / 418.9 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.3211, allocations: 100.7 kB / 419 MB, free: 7.602 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003475/0.3214, allocations: 226.6 kB / 419.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006283/0.3221, allocations: 388.7 kB / 419.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3221, allocations: 0 / 419.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008333/0.3229, allocations: 422.3 kB / 420 MB, free: 6.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.323, allocations: 33.7 kB / 420.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.323, allocations: 4 kB / 420.1 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.323, allocations: 8.531 kB / 420.1 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/0.3234, allocations: 75.83 kB / 420.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.3234, allocations: 8 kB / 420.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003767/0.3238, allocations: 39.67 kB / 420.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.3238, allocations: 23.98 kB / 420.2 MB, free: 6.254 MB / 334.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.0002043/0.3241, allocations: 167.4 kB / 420.4 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.185e-05/0.3241, allocations: 43.58 kB / 420.4 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007371/0.3249, allocations: 310.2 kB / 420.7 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.3249, allocations: 4 kB / 420.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3249, allocations: 8 kB / 420.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3249, allocations: 0 / 420.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.3253, allocations: 365.1 kB / 421.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3253, allocations: 0 / 421.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002329/0.3255, allocations: 43.97 kB / 421.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3255, allocations: 0 / 421.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.3256, allocations: 11.98 kB / 421.1 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3256, allocations: 7.938 kB / 421.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.3256, allocations: 0 / 421.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.3266, allocations: 461.1 kB / 421.6 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.815e-05/0.3267, allocations: 108.7 kB / 421.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.014e-05/0.3268, allocations: 12 kB / 421.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.327, allocations: 23.97 kB / 421.7 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.827e-05/0.3271, allocations: 19.97 kB / 421.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.3271, allocations: 11.98 kB / 421.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002497/0.3274, allocations: 239 kB / 422 MB, free: 4.344 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3274, allocations: 4 kB / 422 MB, free: 4.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003442/0.3277, allocations: 67.84 kB / 422.1 MB, free: 4.273 MB / 334.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.0001643/0.3279, allocations: 115.2 kB / 422.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007593/0.3287, allocations: 322 kB / 422.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3287, allocations: 0 / 422.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.329, allocations: 135.8 kB / 422.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003867/0.3294, allocations: 54.05 kB / 422.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.3307, allocations: 0.6023 MB / 423.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.3311, allocations: 0.7876 MB / 424.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001698/0.3313, allocations: 51.03 kB / 424.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.3314, allocations: 35.42 kB / 424.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3314, allocations: 0 / 424.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of Templates: time 0.008014/0.3394, allocations: 3.589 MB / 427.8 MB, free: 14.54 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)