Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001506/0.001506, allocations: 119.5 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 210.8 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.421/1.421, allocations: 227.7 MB / 247.9 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 59.91 kB / 359.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2319, allocations: 50.54 MB / 410.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003595/0.2355, allocations: 2.298 MB / 412.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.2371, allocations: 0.9347 MB / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.2373, allocations: 7.938 kB / 413.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.2374, allocations: 43.53 kB / 413.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003396/0.2377, allocations: 111.2 kB / 413.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.2381, allocations: 163.7 kB / 413.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.2386, allocations: 430.8 kB / 414.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.2388, allocations: 91.48 kB / 414.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002965/0.2391, allocations: 175.3 kB / 414.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.2394, allocations: 191.1 kB / 414.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.416e-05/0.2394, allocations: 40 kB / 414.7 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.2395, allocations: 52 kB / 414.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.944e-05/0.2396, allocations: 95.59 kB / 414.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.2398, allocations: 191 kB / 415 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004768/0.2403, allocations: 414.3 kB / 415.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2403, allocations: 0 / 415.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2403, allocations: 0 / 415.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.2403, allocations: 3.938 kB / 415.4 MB, free: 12.25 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.001532/0.2419, allocations: 0.7323 MB / 416.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2419, allocations: 8.031 kB / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003066/0.2422, allocations: 72.62 kB / 416.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006105/0.2428, allocations: 384.6 kB / 416.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.2428, allocations: 24.75 kB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.993e-05/0.2429, allocations: 24.38 kB / 416.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005478/0.2435, allocations: 263.4 kB / 416.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.2435, allocations: 3.953 kB / 416.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.2435, allocations: 7.984 kB / 416.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.2435, allocations: 8 kB / 416.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005159/0.244, allocations: 185.6 kB / 417.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.2454, allocations: 0.783 MB / 417.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/0.2459, allocations: 180.2 kB / 418.1 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/0.2462, allocations: 84.81 kB / 418.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.2462, allocations: 4 kB / 418.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005003/0.2467, allocations: 244.9 kB / 418.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.724e-06/0.2467, allocations: 0 / 418.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009835/0.2477, allocations: 379.4 kB / 418.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.2478, allocations: 63.39 kB / 418.8 MB, free: 8.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.2481, allocations: 324.5 kB / 419.1 MB, free: 8.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.135e-05/0.2482, allocations: 41.7 kB / 419.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.2483, allocations: 180.8 kB / 419.3 MB, free: 8.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.01e-05/0.2484, allocations: 91.27 kB / 419.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.2485, allocations: 70.06 kB / 419.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2487, allocations: 346.8 kB / 419.8 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.249, allocations: 96.69 kB / 419.9 MB, free: 7.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003831/0.2493, allocations: 238.5 kB / 420.2 MB, free: 7.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000655/0.25, allocations: 378.5 kB / 420.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.25, allocations: 4 kB / 420.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008437/0.2508, allocations: 437.4 kB / 421 MB, free: 6.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.2509, allocations: 38.22 kB / 421 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.2509, allocations: 8 kB / 421 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.2509, allocations: 4 kB / 421 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.2512, allocations: 75.83 kB / 421.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.2512, allocations: 8 kB / 421.1 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.2515, allocations: 39.77 kB / 421.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.2515, allocations: 23.98 kB / 421.2 MB, free: 6.121 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.000187/0.2517, allocations: 171.3 kB / 421.3 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.557e-05/0.2518, allocations: 39.69 kB / 421.4 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00073/0.2525, allocations: 306.2 kB / 421.7 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.2525, allocations: 7.938 kB / 421.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2525, allocations: 0 / 421.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.2525, allocations: 7.984 kB / 421.7 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003823/0.2529, allocations: 365.2 kB / 422 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2529, allocations: 0 / 422 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.2532, allocations: 43.91 kB / 422.1 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2532, allocations: 0 / 422.1 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.2532, allocations: 7.984 kB / 422.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2532, allocations: 0 / 422.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2532, allocations: 0 / 422.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.2542, allocations: 469.3 kB / 422.5 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.979e-05/0.2543, allocations: 108.9 kB / 422.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.2543, allocations: 8.062 kB / 422.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.2546, allocations: 20.16 kB / 422.7 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.104e-05/0.2547, allocations: 31.97 kB / 422.7 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.2547, allocations: 15.98 kB / 422.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.2549, allocations: 227.1 kB / 423 MB, free: 4.219 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2549, allocations: 0 / 423 MB, free: 4.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.2553, allocations: 75.88 kB / 423 MB, free: 4.145 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.0001428/0.2554, allocations: 119.1 kB / 423.1 MB, free: 4.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007098/0.2561, allocations: 311.1 kB / 423.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2561, allocations: 0 / 423.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.2564, allocations: 120.8 kB / 423.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.2568, allocations: 61.11 kB / 423.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.2579, allocations: 0.6091 MB / 424.2 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.2583, allocations: 0.7915 MB / 425 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.2584, allocations: 50.89 kB / 425.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.889e-05/0.2585, allocations: 31.42 kB / 425.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2585, allocations: 0 / 425.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of Templates: time 0.00798/0.2665, allocations: 3.596 MB / 428.7 MB, free: 14.4 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)