Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 198.4 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007739/0.0007739, allocations: 96.72 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002307, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2151, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002195/0.2174, allocations: 1.882 MB / 409.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.219, allocations: 0.8428 MB / 410.2 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003252/0.2194, allocations: 7.938 kB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.2196, allocations: 23.78 kB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005118/0.2201, allocations: 81.31 kB / 410.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005811/0.2207, allocations: 104.8 kB / 410.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004868/0.2212, allocations: 366.9 kB / 410.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002454/0.2214, allocations: 93.89 kB / 410.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.2218, allocations: 139.3 kB / 411 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.2222, allocations: 156.6 kB / 411.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.228e-05/0.2222, allocations: 15.94 kB / 411.2 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.2223, allocations: 31.98 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.798e-05/0.2224, allocations: 60.45 kB / 411.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.2225, allocations: 85.45 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.2228, allocations: 291.9 kB / 411.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.2228, allocations: 0 / 411.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2229, allocations: 3.938 kB / 411.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.2229, allocations: 0 / 411.6 MB, free: 23.68 MB / 298.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.001509/0.2244, allocations: 0.6469 MB / 412.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.2244, allocations: 8.031 kB / 412.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.2248, allocations: 71.5 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006208/0.2255, allocations: 363.3 kB / 412.7 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.748e-05/0.2255, allocations: 20.44 kB / 412.7 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.495e-05/0.2256, allocations: 43.78 kB / 412.8 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/0.2262, allocations: 263.2 kB / 413 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.2262, allocations: 0 / 413 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.2263, allocations: 8 kB / 413.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.2263, allocations: 8 kB / 413.1 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005725/0.2269, allocations: 205.5 kB / 413.3 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.2285, allocations: 0.8026 MB / 414.1 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005031/0.229, allocations: 203.2 kB / 414.3 MB, free: 20.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.2292, allocations: 105.2 kB / 414.4 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.2293, allocations: 4.172 kB / 414.4 MB, free: 20.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004813/0.2298, allocations: 245.2 kB / 414.6 MB, free: 20.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.344e-06/0.2298, allocations: 0 / 414.6 MB, free: 20.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009752/0.2308, allocations: 407.2 kB / 415 MB, free: 20.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.2308, allocations: 55.41 kB / 415.1 MB, free: 20.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.2311, allocations: 320.4 kB / 415.4 MB, free: 19.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.2311, allocations: 41.69 kB / 415.4 MB, free: 19.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.099e-05/0.2312, allocations: 180.5 kB / 415.6 MB, free: 19.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.2313, allocations: 94.73 kB / 415.7 MB, free: 19.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.2313, allocations: 4 kB / 415.7 MB, free: 19.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.215e-05/0.2314, allocations: 346.8 kB / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.2317, allocations: 112.7 kB / 416.1 MB, free: 18.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.232, allocations: 246.3 kB / 416.4 MB, free: 18.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.2323, allocations: 153.6 kB / 416.5 MB, free: 18.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.2323, allocations: 0 / 416.5 MB, free: 18.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007392/0.233, allocations: 445.6 kB / 417 MB, free: 18.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.2331, allocations: 37.69 kB / 417 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2331, allocations: 7.984 kB / 417 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.2331, allocations: 8 kB / 417 MB, free: 17.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.2334, allocations: 79.83 kB / 417.1 MB, free: 17.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.2334, allocations: 11.95 kB / 417.1 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002818/0.2337, allocations: 47.8 kB / 417.1 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.2337, allocations: 16 kB / 417.2 MB, free: 17.84 MB / 298.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.0001745/0.2339, allocations: 171.4 kB / 417.3 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.234, allocations: 31.62 kB / 417.4 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006413/0.2346, allocations: 334.8 kB / 417.7 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2346, allocations: 4 kB / 417.7 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.2346, allocations: 0 / 417.7 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2347, allocations: 3.953 kB / 417.7 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002733/0.2349, allocations: 361.2 kB / 418 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2349, allocations: 3.984 kB / 418.1 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.2352, allocations: 43.95 kB / 418.1 MB, free: 16.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.2352, allocations: 8 kB / 418.1 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.2352, allocations: 7.984 kB / 418.1 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2352, allocations: 4 kB / 418.1 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2352, allocations: 0 / 418.1 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008616/0.2361, allocations: 486.1 kB / 418.6 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.2362, allocations: 112.6 kB / 418.7 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.417e-05/0.2362, allocations: 16.05 kB / 418.7 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.2365, allocations: 23.98 kB / 418.7 MB, free: 16.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.9e-05/0.2365, allocations: 27.95 kB / 418.8 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.2366, allocations: 15.98 kB / 418.8 MB, free: 16.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000183/0.2368, allocations: 223.1 kB / 419 MB, free: 15.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.2368, allocations: 0 / 419 MB, free: 15.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000294/0.2371, allocations: 71.78 kB / 419.1 MB, free: 15.83 MB / 298.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.0001171/0.2372, allocations: 119.2 kB / 419.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006057/0.2378, allocations: 335.1 kB / 419.5 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2378, allocations: 0 / 419.5 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003055/0.2381, allocations: 140.9 kB / 419.7 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.2385, allocations: 52.45 kB / 419.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000991/0.2395, allocations: 0.7377 MB / 420.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.2397, allocations: 0.7918 MB / 421.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.2398, allocations: 31.42 kB / 421.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2398, allocations: 0 / 421.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Templates: time 0.005971/0.2458, allocations: 4.183 MB / 425.4 MB, free: 9.383 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic --alarm=480 > Modelica_trunk_cpp_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)