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.001922/0.001922, allocations: 118.8 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002116/0.002116, allocations: 205.2 kB / 18.79 MB, free: 4.309 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.545/1.545, allocations: 230.4 MB / 250 MB, free: 9.066 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.002201/0.002201, allocations: 67.83 kB / 367.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3399, allocations: 53.31 MB / 420.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003811/0.3437, allocations: 2.294 MB / 423 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.3455, allocations: 0.9503 MB / 423.9 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.3457, allocations: 7.938 kB / 423.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.3458, allocations: 35.53 kB / 423.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003782/0.3462, allocations: 107.3 kB / 424.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004165/0.3466, allocations: 175.6 kB / 424.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005359/0.3471, allocations: 426.8 kB / 424.6 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.3474, allocations: 91.48 kB / 424.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003284/0.3477, allocations: 183.3 kB / 424.9 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.348, allocations: 187.1 kB / 425.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.293e-05/0.3481, allocations: 36 kB / 425.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.3482, allocations: 56 kB / 425.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.3483, allocations: 99.59 kB / 425.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.3485, allocations: 175 kB / 425.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005343/0.349, allocations: 422.2 kB / 425.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.349, allocations: 0 / 425.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.349, allocations: 0 / 425.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.349, allocations: 4 kB / 425.9 MB, free: 3.117 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.001621/0.3506, allocations: 0.7245 MB / 426.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3507, allocations: 16.02 kB / 426.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/0.351, allocations: 64.64 kB / 426.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006141/0.3516, allocations: 388.6 kB / 427 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.3516, allocations: 16.81 kB / 427.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.129e-05/0.3517, allocations: 32.31 kB / 427.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005654/0.3523, allocations: 267.4 kB / 427.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.3523, allocations: 7.953 kB / 427.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.3523, allocations: 7.984 kB / 427.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.3523, allocations: 8 kB / 427.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005084/0.3528, allocations: 181.6 kB / 427.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.3542, allocations: 0.7869 MB / 428.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005009/0.3547, allocations: 178.7 kB / 428.5 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.355, allocations: 84.81 kB / 428.6 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.355, allocations: 3.984 kB / 428.6 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005196/0.3555, allocations: 244.9 kB / 428.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.3555, allocations: 0 / 428.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009616/0.3565, allocations: 383.3 kB / 429.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.3565, allocations: 63.41 kB / 429.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000364/0.3569, allocations: 320.5 kB / 429.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.3569, allocations: 37.7 kB / 429.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.3571, allocations: 184.8 kB / 429.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.531e-05/0.3572, allocations: 91.27 kB / 429.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.3573, allocations: 74.06 kB / 430 MB, free: 14.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3575, allocations: 346.8 kB / 430.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.3578, allocations: 100.7 kB / 430.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.3582, allocations: 230.5 kB / 430.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006451/0.3588, allocations: 381.2 kB / 431 MB, free: 13.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3588, allocations: 0 / 431 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008196/0.3596, allocations: 430.5 kB / 431.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.3597, allocations: 37.69 kB / 431.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.3597, allocations: 4 kB / 431.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.3597, allocations: 8 kB / 431.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.36, allocations: 72.39 kB / 431.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.36, allocations: 11.94 kB / 431.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.3603, allocations: 43.77 kB / 431.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.3603, allocations: 19.98 kB / 431.6 MB, free: 13 MB / 350.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.0001817/0.3605, allocations: 167.4 kB / 431.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.628e-05/0.3605, allocations: 39.73 kB / 431.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007074/0.3612, allocations: 310.2 kB / 432.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.944e-06/0.3612, allocations: 8.031 kB / 432.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3613, allocations: 4.047 kB / 432.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3613, allocations: 4 kB / 432.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.3616, allocations: 365.2 kB / 432.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.3616, allocations: 0 / 432.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000224/0.3619, allocations: 43.91 kB / 432.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3619, allocations: 4 kB / 432.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.3619, allocations: 11.98 kB / 432.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.256e-05/0.3619, allocations: 0 / 432.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3619, allocations: 0 / 432.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009714/0.3629, allocations: 461.4 kB / 433 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.964e-05/0.363, allocations: 112.9 kB / 433.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.162e-05/0.363, allocations: 4.062 kB / 433.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.3633, allocations: 23.97 kB / 433.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.721e-05/0.3633, allocations: 27.97 kB / 433.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.3634, allocations: 15.92 kB / 433.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.3636, allocations: 227.1 kB / 433.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3636, allocations: 7.938 kB / 433.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003293/0.3639, allocations: 71.88 kB / 433.5 MB, free: 11.02 MB / 350.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.0001598/0.3641, allocations: 115.2 kB / 433.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000685/0.3648, allocations: 318.2 kB / 433.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3648, allocations: 0 / 433.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002898/0.3651, allocations: 115.8 kB / 434 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.3654, allocations: 49 kB / 434.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.3666, allocations: 0.6214 MB / 434.7 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.367, allocations: 0.7915 MB / 435.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001616/0.3672, allocations: 51.03 kB / 435.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.438e-05/0.3673, allocations: 31.42 kB / 435.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3673, allocations: 0 / 435.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of Templates: time 0.008518/0.3758, allocations: 3.641 MB / 439.2 MB, free: 5.238 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 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)