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.001622/0.001622, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001932/0.001932, allocations: 202 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.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 67.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2614, allocations: 50.55 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.00308/0.2645, allocations: 2.279 MB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.266, allocations: 0.9464 MB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.2661, allocations: 7.938 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.2663, allocations: 39.47 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003395/0.2666, allocations: 119.2 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.267, allocations: 163.7 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004137/0.2674, allocations: 426.8 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.2676, allocations: 119.5 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002607/0.2679, allocations: 187.2 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.2682, allocations: 187.1 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.646e-05/0.2682, allocations: 40 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.966e-05/0.2683, allocations: 55.98 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.822e-05/0.2684, allocations: 95.61 kB / 413.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.2686, allocations: 187 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000425/0.269, allocations: 417.3 kB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.269, allocations: 0 / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.269, allocations: 4 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2691, allocations: 4 kB / 414 MB, free: 12.3 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.001424/0.2705, allocations: 0.7246 MB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2705, allocations: 16.03 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.424e-05/0.2706, allocations: 54.73 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002962/0.2709, allocations: 64.62 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005702/0.2715, allocations: 392.5 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.2715, allocations: 20.81 kB / 415.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.2716, allocations: 32.38 kB / 415.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005159/0.2721, allocations: 251.3 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.2721, allocations: 7.891 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.2722, allocations: 15.98 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.2722, allocations: 4 kB / 415.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000494/0.2727, allocations: 185.6 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.274, allocations: 0.7752 MB / 416.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004808/0.2745, allocations: 190.7 kB / 416.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.2747, allocations: 88.8 kB / 416.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.2748, allocations: 11.92 kB / 416.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004695/0.2752, allocations: 237 kB / 417 MB, free: 9.082 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.274e-06/0.2752, allocations: 0 / 417 MB, free: 9.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009457/0.2762, allocations: 391.3 kB / 417.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.2763, allocations: 55.41 kB / 417.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.2766, allocations: 324.5 kB / 417.8 MB, free: 8.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.2766, allocations: 37.7 kB / 417.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.2768, allocations: 184.8 kB / 418 MB, free: 8.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/0.2769, allocations: 91.27 kB / 418.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.277, allocations: 74 kB / 418.2 MB, free: 7.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2771, allocations: 346.8 kB / 418.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.2774, allocations: 100.6 kB / 418.6 MB, free: 7.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003427/0.2777, allocations: 230.6 kB / 418.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006129/0.2784, allocations: 378.5 kB / 419.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.2784, allocations: 4 kB / 419.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008317/0.2792, allocations: 445.2 kB / 419.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.2793, allocations: 37.69 kB / 419.7 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2793, allocations: 4 kB / 419.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2793, allocations: 4.531 kB / 419.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.2796, allocations: 79.83 kB / 419.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.2796, allocations: 8 kB / 419.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.2799, allocations: 35.83 kB / 419.8 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.28, allocations: 20 kB / 419.8 MB, free: 6.102 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.0001768/0.2801, allocations: 175.3 kB / 420 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.163e-05/0.2802, allocations: 31.81 kB / 420 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007064/0.2809, allocations: 310.2 kB / 420.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2809, allocations: 4 kB / 420.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.2809, allocations: 3.938 kB / 420.3 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.281, allocations: 3.984 kB / 420.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/0.2813, allocations: 369.2 kB / 420.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2813, allocations: 4 kB / 420.7 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.2815, allocations: 43.91 kB / 420.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.2816, allocations: 0 / 420.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.2816, allocations: 7.984 kB / 420.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.2816, allocations: 0 / 420.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2816, allocations: 0 / 420.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009611/0.2826, allocations: 469.3 kB / 421.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.304e-05/0.2827, allocations: 112.8 kB / 421.3 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.649e-05/0.2827, allocations: 8.062 kB / 421.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.283, allocations: 19.97 kB / 421.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.331e-05/0.2831, allocations: 27.97 kB / 421.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.2831, allocations: 11.98 kB / 421.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002377/0.2833, allocations: 231.1 kB / 421.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2833, allocations: 0 / 421.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.2837, allocations: 79.88 kB / 421.7 MB, free: 4.117 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.001298/0.285, allocations: 0.9961 MB / 422.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006891/0.2857, allocations: 323.9 kB / 423 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2857, allocations: 0 / 423 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003064/0.286, allocations: 128.3 kB / 423.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.2864, allocations: 57.56 kB / 423.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/0.291, allocations: 3.499 MB / 426.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.2915, allocations: 0.7837 MB / 427.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001766/0.2916, allocations: 46.95 kB / 427.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.2918, allocations: 123.4 kB / 427.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2918, allocations: 0 / 427.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.3173, allocations: 6.906 MB / 434.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/8.515, allocations: 4 kB / 434.5 MB, free: 7.086 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0005 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1)