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.0008873/0.0008873, allocations: 93.84 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002204/0.0002204, allocations: 4 kB / 307.8 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0871/0.08734, allocations: 51.53 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002366/0.08975, allocations: 1.96 MB / 361.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.09143, allocations: 0.9231 MB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.09167, allocations: 4 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.09181, allocations: 23.72 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003846/0.0922, allocations: 87.47 kB / 362.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.0926, allocations: 147.8 kB / 362.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004748/0.09308, allocations: 398.8 kB / 362.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002323/0.09333, allocations: 115.5 kB / 363 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003055/0.09364, allocations: 139.3 kB / 363.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.09393, allocations: 171.1 kB / 363.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.094, allocations: 12 kB / 363.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.896e-05/0.0941, allocations: 32 kB / 363.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.762e-05/0.09419, allocations: 75.59 kB / 363.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.09437, allocations: 176.7 kB / 363.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003626/0.09474, allocations: 378.8 kB / 364 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.09475, allocations: 0 / 364 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09476, allocations: 0 / 364 MB, free: 8.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.09478, allocations: 0 / 364 MB, free: 8.57 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.001355/0.09614, allocations: 0.6549 MB / 364.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.09619, allocations: 8.031 kB / 364.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.177e-05/0.09629, allocations: 54.73 kB / 364.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.09659, allocations: 68.44 kB / 364.7 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.09716, allocations: 392.3 kB / 365.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.09719, allocations: 20.81 kB / 365.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.152e-05/0.09725, allocations: 28.38 kB / 365.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005344/0.09779, allocations: 267.3 kB / 365.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.09781, allocations: 0 / 365.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.09785, allocations: 8 kB / 365.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.09786, allocations: 12 kB / 365.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005153/0.09838, allocations: 201.6 kB / 365.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.09972, allocations: 0.8139 MB / 366.5 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004836/0.1002, allocations: 202.8 kB / 366.7 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.1005, allocations: 100.8 kB / 366.8 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.1005, allocations: 11.88 kB / 366.8 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004677/0.101, allocations: 249 kB / 367 MB, free: 5.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.101, allocations: 0 / 367 MB, free: 5.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009535/0.1019, allocations: 405.1 kB / 367.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.102, allocations: 67.28 kB / 367.5 MB, free: 4.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.1024, allocations: 320.5 kB / 367.8 MB, free: 4.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.1024, allocations: 33.7 kB / 367.8 MB, free: 4.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.1025, allocations: 196.5 kB / 368 MB, free: 4.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.744e-05/0.1026, allocations: 78.91 kB / 368.1 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.426e-05/0.1027, allocations: 45.69 kB / 368.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1028, allocations: 346.8 kB / 368.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.1031, allocations: 108.7 kB / 368.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/0.1034, allocations: 242.6 kB / 368.8 MB, free: 3.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006365/0.1041, allocations: 397.6 kB / 369.2 MB, free: 2.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.1041, allocations: 0 / 369.2 MB, free: 2.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008191/0.1049, allocations: 450.8 kB / 369.7 MB, free: 2.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/0.105, allocations: 37.7 kB / 369.7 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.105, allocations: 4 kB / 369.7 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.105, allocations: 4 kB / 369.7 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.1053, allocations: 75.83 kB / 369.8 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.1053, allocations: 15.98 kB / 369.8 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/0.1056, allocations: 51.61 kB / 369.8 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.1056, allocations: 20 kB / 369.9 MB, free: 2.285 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.0001688/0.1058, allocations: 176.4 kB / 370 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.586e-05/0.1059, allocations: 31.62 kB / 370.1 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000704/0.1066, allocations: 329.9 kB / 370.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1066, allocations: 4 kB / 370.4 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1066, allocations: 0 / 370.4 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1066, allocations: 0 / 370.4 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003269/0.1069, allocations: 365.2 kB / 370.7 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.107, allocations: 4.047 kB / 370.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.1072, allocations: 51.88 kB / 370.8 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1072, allocations: 4 kB / 370.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.1072, allocations: 8 kB / 370.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1072, allocations: 0 / 370.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1072, allocations: 0 / 370.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009593/0.1082, allocations: 494.1 kB / 371.3 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.341e-05/0.1083, allocations: 108.7 kB / 371.4 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.1084, allocations: 12.06 kB / 371.4 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.1086, allocations: 27.97 kB / 371.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.489e-05/0.1087, allocations: 23.97 kB / 371.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.1087, allocations: 15.98 kB / 371.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000224/0.1089, allocations: 227.1 kB / 371.7 MB, free: 348 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1089, allocations: 0 / 371.7 MB, free: 348 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.1093, allocations: 75.73 kB / 371.8 MB, free: 272 kB / 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.1592/0.2684, allocations: 1.024 MB / 372.8 MB, free: 18.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007945/0.2693, allocations: 349.4 kB / 373.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.2693, allocations: 4.875 kB / 373.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.2696, allocations: 126.7 kB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.2701, allocations: 51.19 kB / 373.3 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004992/0.2751, allocations: 3.698 MB / 377 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.2753, allocations: 0.7979 MB / 377.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.2755, allocations: 45.61 kB / 377.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.2757, allocations: 120 kB / 378 MB, free: 16.04 MB / 302.1 MB Notification: Performance of SimCode: time 8.31e-07/0.2757, allocations: 0 / 378 MB, free: 16.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01758/0.2933, allocations: 6.282 MB / 384.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001407/0.2935, allocations: 204.2 kB / 384.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.098, allocations: 7.234 kB / 384.5 MB, free: 14.9 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)