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.001427/0.001427, allocations: 195.5 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009717/0.0009717, allocations: 96.19 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003685, allocations: 8 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.28, allocations: 51.28 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002027/0.2821, allocations: 1.882 MB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.2832, allocations: 0.8506 MB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.2833, allocations: 7.938 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.2834, allocations: 23.72 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.2837, allocations: 81.02 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.284, allocations: 101.7 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.2843, allocations: 370.9 kB / 411.3 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.2845, allocations: 112.8 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.2847, allocations: 139.3 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.2849, allocations: 155.2 kB / 411.7 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.825e-05/0.2849, allocations: 12 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.275e-05/0.285, allocations: 35.33 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.59e-05/0.2851, allocations: 63.69 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2852, allocations: 172.8 kB / 412 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.2854, allocations: 288.3 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2854, allocations: 0 / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2854, allocations: 0 / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.2855, allocations: 3.938 kB / 412.3 MB, free: 23.4 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.001172/0.2866, allocations: 0.6432 MB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2867, allocations: 16.03 kB / 413 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002694/0.287, allocations: 64.44 kB / 413 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.2874, allocations: 380.3 kB / 413.4 MB, free: 22.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.2875, allocations: 20.8 kB / 413.4 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/0.2875, allocations: 32.38 kB / 413.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004698/0.288, allocations: 259.5 kB / 413.7 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.288, allocations: 4 kB / 413.7 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.2881, allocations: 11.98 kB / 413.7 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2881, allocations: 4 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/0.2885, allocations: 205.6 kB / 413.9 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.2897, allocations: 0.8062 MB / 414.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004259/0.2901, allocations: 206.7 kB / 414.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.2903, allocations: 96.8 kB / 415 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.2904, allocations: 11.97 kB / 415 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003985/0.2908, allocations: 248.9 kB / 415.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.814e-06/0.2908, allocations: 4 kB / 415.3 MB, free: 20.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008251/0.2916, allocations: 403.2 kB / 415.7 MB, free: 19.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.2917, allocations: 63.39 kB / 415.7 MB, free: 19.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002617/0.2919, allocations: 312.6 kB / 416 MB, free: 19.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.292, allocations: 33.7 kB / 416.1 MB, free: 19.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.99e-05/0.2921, allocations: 188.4 kB / 416.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.048e-05/0.2921, allocations: 90.83 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.798e-05/0.2921, allocations: 8 kB / 416.4 MB, free: 19.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.172e-05/0.2922, allocations: 350.7 kB / 416.7 MB, free: 18.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.2925, allocations: 100.7 kB / 416.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.2928, allocations: 250.3 kB / 417 MB, free: 18.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005029/0.2933, allocations: 398.4 kB / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2933, allocations: 0 / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007471/0.294, allocations: 445.8 kB / 417.9 MB, free: 17.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.2941, allocations: 37.69 kB / 417.9 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.2941, allocations: 4.062 kB / 417.9 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.2941, allocations: 12 kB / 417.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.2944, allocations: 75.89 kB / 418 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.2944, allocations: 7.938 kB / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.2947, allocations: 51.67 kB / 418.1 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.578e-05/0.2947, allocations: 16 kB / 418.1 MB, free: 17.27 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.0001335/0.2948, allocations: 163.5 kB / 418.2 MB, free: 17.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.914e-05/0.2949, allocations: 35.56 kB / 418.3 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006196/0.2955, allocations: 330.8 kB / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.2955, allocations: 4 kB / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2955, allocations: 4 kB / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2955, allocations: 0 / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.2958, allocations: 365.2 kB / 419 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2958, allocations: 0 / 419 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.296, allocations: 47.91 kB / 419 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.296, allocations: 4 kB / 419 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.2961, allocations: 3.984 kB / 419 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.2961, allocations: 8 kB / 419 MB, free: 16.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2961, allocations: 0 / 419 MB, free: 16.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000792/0.2969, allocations: 486.2 kB / 419.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.315e-05/0.2969, allocations: 108.7 kB / 419.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.297, allocations: 12.05 kB / 419.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.2972, allocations: 27.98 kB / 419.6 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.2973, allocations: 27.95 kB / 419.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.2973, allocations: 15.98 kB / 419.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001727/0.2975, allocations: 223.1 kB / 419.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.2975, allocations: 0 / 419.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003101/0.2978, allocations: 75.77 kB / 420 MB, free: 15.27 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.0001148/0.2979, allocations: 119.2 kB / 420.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005732/0.2985, allocations: 342.9 kB / 420.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2985, allocations: 0 / 420.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002571/0.2988, allocations: 132.9 kB / 420.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.2991, allocations: 59.34 kB / 420.6 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008747/0.3, allocations: 0.73 MB / 421.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.3002, allocations: 0.7918 MB / 422.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.3003, allocations: 35.42 kB / 422.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.3003, allocations: 7.938 kB / 422.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of Templates: time 0.004851/0.3052, allocations: 4.161 MB / 426.3 MB, free: 8.836 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)