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.001287/0.001287, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 60.06 kB / 306.4 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1026, allocations: 50.53 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.004323/0.1069, allocations: 2.322 MB / 359.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.1092, allocations: 0.9425 MB / 360.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.1096, allocations: 7.938 kB / 360.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002251/0.1098, allocations: 27.72 kB / 360.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005165/0.1104, allocations: 79.53 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005153/0.1109, allocations: 151.8 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000637/0.1116, allocations: 394.9 kB / 360.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003004/0.1119, allocations: 115.5 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004185/0.1123, allocations: 167.2 kB / 361.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003844/0.1127, allocations: 179.1 kB / 361.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.18e-05/0.1128, allocations: 24 kB / 361.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.1129, allocations: 32 kB / 361.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1131, allocations: 83.59 kB / 361.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.1133, allocations: 155.1 kB / 361.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004765/0.1138, allocations: 386.9 kB / 361.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1138, allocations: 0 / 361.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1138, allocations: 0 / 361.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.1138, allocations: 0 / 361.9 MB, free: 9.133 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.00192/0.1157, allocations: 0.7309 MB / 362.6 MB, free: 8.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.1158, allocations: 8.031 kB / 362.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.273e-05/0.1159, allocations: 58.72 kB / 362.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003319/0.1162, allocations: 64.45 kB / 362.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005771/0.1168, allocations: 380.3 kB / 363.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.1168, allocations: 20.81 kB / 363.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.1169, allocations: 28.36 kB / 363.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005501/0.1174, allocations: 259.3 kB / 363.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.1175, allocations: 0 / 363.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.1175, allocations: 8 kB / 363.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.1175, allocations: 7.938 kB / 363.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.1181, allocations: 185.6 kB / 363.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.1195, allocations: 0.7984 MB / 364.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005108/0.12, allocations: 186.7 kB / 364.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.1203, allocations: 92.8 kB / 364.7 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.1203, allocations: 11.92 kB / 364.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005425/0.1209, allocations: 245.6 kB / 365 MB, free: 5.891 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.814e-06/0.1209, allocations: 3.938 kB / 365 MB, free: 5.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001013/0.1219, allocations: 375.2 kB / 365.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.122, allocations: 63.39 kB / 365.4 MB, free: 5.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003394/0.1223, allocations: 312.6 kB / 365.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.1224, allocations: 41.7 kB / 365.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.1225, allocations: 188.6 kB / 365.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.031e-05/0.1226, allocations: 82.8 kB / 366 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.1227, allocations: 78.06 kB / 366.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1228, allocations: 342.8 kB / 366.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.1231, allocations: 96.69 kB / 366.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.1234, allocations: 234.5 kB / 366.7 MB, free: 3.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.1241, allocations: 374.5 kB / 367.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.1241, allocations: 0 / 367.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000864/0.1249, allocations: 433 kB / 367.5 MB, free: 3.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.367e-05/0.125, allocations: 33.7 kB / 367.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.125, allocations: 4.531 kB / 367.6 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.125, allocations: 12 kB / 367.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.1253, allocations: 71.89 kB / 367.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.1254, allocations: 7.938 kB / 367.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.1257, allocations: 47.66 kB / 367.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.509e-05/0.1257, allocations: 16.05 kB / 367.7 MB, free: 2.934 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.0002319/0.126, allocations: 180.4 kB / 367.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.126, allocations: 35.62 kB / 367.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007183/0.1268, allocations: 309.2 kB / 368.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1268, allocations: 4 kB / 368.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1268, allocations: 0 / 368.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1268, allocations: 0 / 368.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003365/0.1271, allocations: 365.2 kB / 368.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.1271, allocations: 4.062 kB / 368.6 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.1274, allocations: 47.84 kB / 368.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.1274, allocations: 4 kB / 368.6 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.1274, allocations: 11.98 kB / 368.7 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1274, allocations: 3.984 kB / 368.7 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1274, allocations: 0 / 368.7 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009466/0.1284, allocations: 454.2 kB / 369.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.377e-05/0.1285, allocations: 112.7 kB / 369.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.181e-05/0.1286, allocations: 12.05 kB / 369.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.1288, allocations: 15.98 kB / 369.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.916e-05/0.1289, allocations: 31.95 kB / 369.3 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.1289, allocations: 15.98 kB / 369.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002313/0.1292, allocations: 227.1 kB / 369.5 MB, free: 1.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1292, allocations: 0 / 369.5 MB, free: 1.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.1295, allocations: 71.78 kB / 369.6 MB, free: 0.9648 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.1668/0.2963, allocations: 1.008 MB / 370.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008516/0.2972, allocations: 321.2 kB / 370.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2972, allocations: 2.719 kB / 370.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002897/0.2975, allocations: 119 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.2979, allocations: 47.94 kB / 371.1 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004548/0.3025, allocations: 3.649 MB / 374.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.3028, allocations: 0.7874 MB / 375.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002002/0.303, allocations: 51.81 kB / 375.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.3032, allocations: 124.3 kB / 375.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3032, allocations: 1.25 kB / 375.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.3222, allocations: 6.38 MB / 382.1 MB, free: 16.46 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.3224, allocations: 201.9 kB / 382.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.231, allocations: 0 / 382.3 MB, free: 16.2 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)