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.001586/0.001585, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001893/0.001893, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 62.67 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09784, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003591/0.1015, allocations: 2.275 MB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1033, allocations: 0.9502 MB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.1036, allocations: 4 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.1038, allocations: 43.47 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004483/0.1042, allocations: 103.3 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.1047, allocations: 159.7 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004843/0.1052, allocations: 438.8 kB / 361.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.1055, allocations: 123.5 kB / 361.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003357/0.1058, allocations: 183.2 kB / 361.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003038/0.1061, allocations: 183.1 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.838e-05/0.1062, allocations: 36 kB / 362.1 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1063, allocations: 55.98 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.1065, allocations: 95.61 kB / 362.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001873/0.1067, allocations: 183 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.1071, allocations: 398.9 kB / 362.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1071, allocations: 0 / 362.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.1071, allocations: 4 kB / 362.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.1071, allocations: 3.938 kB / 362.8 MB, free: 8.773 MB / 302.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.001526/0.1086, allocations: 0.7326 MB / 363.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1087, allocations: 8.031 kB / 363.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.703e-05/0.1088, allocations: 58.72 kB / 363.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003327/0.1091, allocations: 64.44 kB / 363.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005732/0.1097, allocations: 380.3 kB / 364 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.1097, allocations: 20.81 kB / 364 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.351e-05/0.1098, allocations: 24.38 kB / 364.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.1104, allocations: 259.3 kB / 364.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.1104, allocations: 7.938 kB / 364.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.1105, allocations: 15.92 kB / 364.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1105, allocations: 4 kB / 364.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005102/0.111, allocations: 177.6 kB / 364.5 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.1124, allocations: 0.7945 MB / 365.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004995/0.113, allocations: 186.7 kB / 365.5 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.1132, allocations: 92.8 kB / 365.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.1133, allocations: 3.938 kB / 365.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.1137, allocations: 246.6 kB / 365.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.014e-06/0.1137, allocations: 0 / 365.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009547/0.1147, allocations: 391.1 kB / 366.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.1148, allocations: 59.41 kB / 366.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003653/0.1151, allocations: 316.5 kB / 366.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.1152, allocations: 37.7 kB / 366.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1153, allocations: 184.6 kB / 366.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.006e-05/0.1154, allocations: 82.8 kB / 366.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1155, allocations: 78.06 kB / 366.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1157, allocations: 342.8 kB / 367.3 MB, free: 4.023 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.1159, allocations: 100.7 kB / 367.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.1163, allocations: 234.5 kB / 367.6 MB, free: 3.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006259/0.1169, allocations: 373.7 kB / 368 MB, free: 3.207 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.117, allocations: 0 / 368 MB, free: 3.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008246/0.1178, allocations: 434.6 kB / 368.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.1178, allocations: 37.69 kB / 368.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1178, allocations: 4 kB / 368.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.1179, allocations: 8 kB / 368.4 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.1182, allocations: 71.89 kB / 368.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.1182, allocations: 7.938 kB / 368.5 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.1185, allocations: 43.67 kB / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.1185, allocations: 20.06 kB / 368.6 MB, free: 2.574 MB / 302.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.0001784/0.1187, allocations: 180.5 kB / 368.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.895e-05/0.1188, allocations: 35.56 kB / 368.8 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007128/0.1195, allocations: 313.2 kB / 369.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.1195, allocations: 4 kB / 369.1 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1195, allocations: 3.938 kB / 369.1 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1195, allocations: 3.984 kB / 369.1 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003402/0.1199, allocations: 361.2 kB / 369.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1199, allocations: 0 / 369.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.1201, allocations: 43.91 kB / 369.5 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.1202, allocations: 4 kB / 369.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.1202, allocations: 11.98 kB / 369.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1202, allocations: 4 kB / 369.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1202, allocations: 0 / 369.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009523/0.1212, allocations: 450.2 kB / 370 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.608e-05/0.1212, allocations: 112.7 kB / 370.1 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.77e-05/0.1213, allocations: 8.062 kB / 370.1 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.1215, allocations: 23.97 kB / 370.1 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.888e-05/0.1216, allocations: 27.97 kB / 370.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.1217, allocations: 11.98 kB / 370.1 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.1219, allocations: 227.1 kB / 370.4 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1219, allocations: 0 / 370.4 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003369/0.1222, allocations: 75.83 kB / 370.4 MB, free: 0.6094 MB / 302.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.1431/0.2654, allocations: 0.9976 MB / 371.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008215/0.2662, allocations: 339.5 kB / 371.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2662, allocations: 1.094 kB / 371.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003049/0.2665, allocations: 122 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.2669, allocations: 51.28 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004271/0.2712, allocations: 3.542 MB / 375.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.2714, allocations: 0.7856 MB / 376.3 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.2716, allocations: 47.25 kB / 376.3 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.2718, allocations: 121.8 kB / 376.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2718, allocations: 0 / 376.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3922/0.6641, allocations: 6.794 MB / 383.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.536/9.201, allocations: 5.281 kB / 383.2 MB, free: 15.74 MB / 302.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)