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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00144/0.00144, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001372, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 67.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2932, allocations: 50.55 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.005368/0.2986, allocations: 2.29 MB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.301, allocations: 0.9386 MB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002099/0.3012, allocations: 4 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.3014, allocations: 39.47 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005216/0.302, allocations: 107.3 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005683/0.3026, allocations: 167.7 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007106/0.3033, allocations: 434.7 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003468/0.3037, allocations: 123.5 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004202/0.3041, allocations: 179.2 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000441/0.3046, allocations: 187.1 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.955e-05/0.3047, allocations: 40 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.3048, allocations: 55.98 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000144/0.305, allocations: 91.61 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.3053, allocations: 187 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007351/0.306, allocations: 413.4 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3061, allocations: 3.938 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3061, allocations: 4 kB / 414.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.3061, allocations: 0 / 414.1 MB, free: 12.22 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.002015/0.3081, allocations: 0.7285 MB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.3082, allocations: 16.02 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.3083, allocations: 54.73 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004592/0.3088, allocations: 68.62 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008755/0.3097, allocations: 380.6 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.335e-05/0.3097, allocations: 28.8 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.3098, allocations: 32.38 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008094/0.3106, allocations: 255.2 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.3107, allocations: 7.891 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/0.3107, allocations: 15.98 kB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.3108, allocations: 7.984 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007856/0.3116, allocations: 185.6 kB / 415.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.3136, allocations: 0.7713 MB / 416.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007515/0.3144, allocations: 190.7 kB / 416.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/0.3148, allocations: 88.8 kB / 416.9 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.3148, allocations: 7.938 kB / 416.9 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007223/0.3156, allocations: 245 kB / 417.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 3.036e-06/0.3156, allocations: 4 kB / 417.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001495/0.3171, allocations: 379.3 kB / 417.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/0.3172, allocations: 67.39 kB / 417.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005729/0.3178, allocations: 316.5 kB / 417.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.679e-05/0.3179, allocations: 37.69 kB / 417.9 MB, free: 8.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.3181, allocations: 188.8 kB / 418.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.3182, allocations: 91.27 kB / 418.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.3184, allocations: 74.06 kB / 418.2 MB, free: 7.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.3187, allocations: 346.8 kB / 418.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004241/0.3191, allocations: 96.69 kB / 418.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005791/0.3197, allocations: 238.5 kB / 418.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.3207, allocations: 378.5 kB / 419.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.3207, allocations: 0 / 419.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001282/0.322, allocations: 432.8 kB / 419.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.3221, allocations: 37.7 kB / 419.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.3221, allocations: 8.531 kB / 419.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.918e-05/0.3222, allocations: 7.984 kB / 419.7 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.3226, allocations: 67.91 kB / 419.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.507e-05/0.3226, allocations: 15.92 kB / 419.8 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004178/0.3231, allocations: 39.83 kB / 419.9 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.3231, allocations: 12 kB / 419.9 MB, free: 6.023 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.0003103/0.3234, allocations: 179.4 kB / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.535e-05/0.3235, allocations: 35.75 kB / 420.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.3246, allocations: 306.2 kB / 420.4 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3247, allocations: 7.938 kB / 420.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3247, allocations: 0 / 420.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.3247, allocations: 3.984 kB / 420.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006112/0.3253, allocations: 365.2 kB / 420.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3253, allocations: 4 kB / 420.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003646/0.3257, allocations: 43.89 kB / 420.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3257, allocations: 0 / 420.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.3258, allocations: 8 kB / 420.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3258, allocations: 0 / 420.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.3258, allocations: 4.062 kB / 420.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.3274, allocations: 469.3 kB / 421.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.3275, allocations: 116.9 kB / 421.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.011e-05/0.3276, allocations: 8 kB / 421.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/0.328, allocations: 15.98 kB / 421.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.3281, allocations: 27.95 kB / 421.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/0.3282, allocations: 15.98 kB / 421.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004177/0.3286, allocations: 231.1 kB / 421.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.718e-06/0.3286, allocations: 0 / 421.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006243/0.3292, allocations: 71.83 kB / 421.7 MB, free: 4.039 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.001972/0.3312, allocations: 1.004 MB / 422.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.3323, allocations: 323.8 kB / 423.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3323, allocations: 0 / 423.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.3327, allocations: 124.3 kB / 423.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.3333, allocations: 55.22 kB / 423.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007344/0.3406, allocations: 3.492 MB / 426.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006186/0.3413, allocations: 0.7954 MB / 427.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000317/0.3416, allocations: 42.95 kB / 427.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.342, allocations: 119.4 kB / 427.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.342, allocations: 0 / 427.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.035/0.377, allocations: 6.908 MB / 434.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.974/9.351, allocations: 11.56 kB / 434.6 MB, free: 7.004 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)