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.0007847/0.0007846, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008231/0.0008232, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.554/1.554, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.000303, allocations: 8 kB / 306.8 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1365, allocations: 51.49 MB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002591/0.1392, allocations: 1.887 MB / 360.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.1408, allocations: 0.8456 MB / 361 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.1409, allocations: 11.94 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.1411, allocations: 23.78 kB / 361.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.1414, allocations: 79.42 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002972/0.1417, allocations: 103.8 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000405/0.1421, allocations: 370.9 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.1424, allocations: 94.12 kB / 361.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.1427, allocations: 143.3 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.1429, allocations: 155.3 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.143, allocations: 12 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.546e-05/0.1431, allocations: 28 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.834e-05/0.1432, allocations: 71.66 kB / 362.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.671e-05/0.1432, allocations: 81.52 kB / 362.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003072/0.1436, allocations: 287.5 kB / 362.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1436, allocations: 0 / 362.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1436, allocations: 0 / 362.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.1436, allocations: 0 / 362.5 MB, free: 9.602 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.001419/0.145, allocations: 0.6508 MB / 363.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.1451, allocations: 12.03 kB / 363.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.872e-05/0.1452, allocations: 58.53 kB / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/0.1455, allocations: 59.52 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005216/0.146, allocations: 371.3 kB / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.146, allocations: 24.44 kB / 363.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-05/0.1461, allocations: 31.95 kB / 363.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/0.1467, allocations: 259.2 kB / 363.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.1467, allocations: 4 kB / 363.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.1467, allocations: 15.98 kB / 363.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1467, allocations: 7.938 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.1472, allocations: 205.6 kB / 364.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.1487, allocations: 0.8026 MB / 364.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005085/0.1492, allocations: 211.2 kB / 365.1 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.1495, allocations: 93.19 kB / 365.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.824e-05/0.1495, allocations: 12.17 kB / 365.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000534/0.15, allocations: 241.2 kB / 365.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.863e-06/0.1501, allocations: 0 / 365.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001037/0.1511, allocations: 412.9 kB / 365.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.1512, allocations: 63.41 kB / 365.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003977/0.1516, allocations: 320.4 kB / 366.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.1517, allocations: 41.69 kB / 366.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.1518, allocations: 184.6 kB / 366.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.23e-05/0.1519, allocations: 82.8 kB / 366.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-05/0.152, allocations: 8 kB / 366.6 MB, free: 5.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.1522, allocations: 346.8 kB / 366.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002867/0.1525, allocations: 108.7 kB / 367 MB, free: 4.805 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/0.1529, allocations: 249 kB / 367.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.1532, allocations: 161.6 kB / 367.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1532, allocations: 0 / 367.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008273/0.1541, allocations: 437.4 kB / 367.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.73e-05/0.1541, allocations: 37.69 kB / 367.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1542, allocations: 4 kB / 367.9 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.1542, allocations: 8 kB / 367.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.1545, allocations: 79.83 kB / 368 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.509e-05/0.1545, allocations: 11.95 kB / 368 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.1548, allocations: 47.67 kB / 368 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.1548, allocations: 27.92 kB / 368.1 MB, free: 3.684 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 ($PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.mean.y_last,mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.155, allocations: 156.6 kB / 368.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.1551, allocations: 35.61 kB / 368.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007185/0.1558, allocations: 330.1 kB / 368.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1558, allocations: 8 kB / 368.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1558, allocations: 0 / 368.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.1559, allocations: 7.938 kB / 368.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.1562, allocations: 361.2 kB / 368.9 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1562, allocations: 0 / 368.9 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.1565, allocations: 47.97 kB / 369 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.1565, allocations: 48 / 369 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.1565, allocations: 19.91 kB / 369 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1565, allocations: 0 / 369 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1565, allocations: 4 kB / 369 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.1576, allocations: 488.9 kB / 369.5 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.1577, allocations: 112.7 kB / 369.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.949e-05/0.1578, allocations: 8.062 kB / 369.6 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.158, allocations: 27.97 kB / 369.6 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.353e-05/0.1581, allocations: 31.95 kB / 369.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.1581, allocations: 8 kB / 369.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.1584, allocations: 227 kB / 369.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1584, allocations: 0 / 369.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000364/0.1587, allocations: 67.84 kB / 370 MB, free: 1.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001411/0.1602, allocations: 1.031 MB / 371 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007191/0.1609, allocations: 352.6 kB / 371.3 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1609, allocations: 4.125 kB / 371.3 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002783/0.1612, allocations: 127.9 kB / 371.5 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.1616, allocations: 52.81 kB / 371.5 MB, free: 92 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2059/0.3675, allocations: 2.064 MB / 373.6 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.3679, allocations: 0.7854 MB / 374.4 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002516/0.3682, allocations: 53.61 kB / 374.4 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.3684, allocations: 116.4 kB / 374.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of SimCode: time 1.413e-06/0.3684, allocations: 0 / 374.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.3915, allocations: 6.13 MB / 380.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.3918, allocations: 188.2 kB / 380.8 MB, free: 17.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.343, allocations: 0 / 380.8 MB, free: 17.17 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/linux/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)