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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 201.8 kB / 8.767 MB, free: 288 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008304/0.0008303, allocations: 97.69 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.957e-05/1.999e-05, allocations: 4 kB / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09943/0.09947, allocations: 51.48 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3552/0.4548, allocations: 78.75 MB / 474 MB, free: 12.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.455, allocations: 64.09 kB / 474.1 MB, free: 12.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01799/0.473, allocations: 5.905 MB / 480 MB, free: 9.246 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4731, allocations: 0 / 480 MB, free: 9.246 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.791e-05/0.4731, allocations: 8 kB / 480 MB, free: 9.238 MB / 346.7 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.001169/0.4743, allocations: 0.6113 MB / 480.6 MB, free: 8.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.464e-05/0.4744, allocations: 8.031 kB / 480.6 MB, free: 8.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000368/0.4748, allocations: 67.5 kB / 480.7 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006625/0.4754, allocations: 352.1 kB / 481 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.4755, allocations: 15.98 kB / 481 MB, free: 8.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.856e-05/0.4756, allocations: 23.38 kB / 481.1 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002963/0.4759, allocations: 132.6 kB / 481.2 MB, free: 8.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.4762, allocations: 193.9 kB / 481.4 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.4762, allocations: 0 / 481.4 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.4763, allocations: 4 kB / 481.4 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.4763, allocations: 4 kB / 481.4 MB, free: 7.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.4776, allocations: 0.758 MB / 482.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.4778, allocations: 140.7 kB / 482.3 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.972e-05/0.4779, allocations: 66.09 kB / 482.3 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.478, allocations: 8.109 kB / 482.4 MB, free: 7.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003263/0.4783, allocations: 216.1 kB / 482.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 2.164e-06/0.4783, allocations: 0 / 482.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0004528/0.4788, allocations: 230.2 kB / 482.8 MB, free: 6.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.4788, allocations: 55.41 kB / 482.8 MB, free: 6.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.4791, allocations: 264.1 kB / 483.1 MB, free: 6.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.4791, allocations: 33.69 kB / 483.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.4792, allocations: 190.6 kB / 483.3 MB, free: 6.273 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.4793, allocations: 80.34 kB / 483.4 MB, free: 6.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/0.4793, allocations: 0 / 483.4 MB, free: 6.207 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.846e-05/0.4794, allocations: 348.2 kB / 483.7 MB, free: 5.871 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.4795, allocations: 71.62 kB / 483.8 MB, free: 5.828 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.4797, allocations: 199.5 kB / 484 MB, free: 5.609 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.4799, allocations: 93.31 kB / 484.1 MB, free: 5.547 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4799, allocations: 4 kB / 484.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004118/0.4803, allocations: 309.9 kB / 484.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.4803, allocations: 39.09 kB / 484.4 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.4804, allocations: 8.531 kB / 484.4 MB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.4804, allocations: 8 kB / 484.5 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.4807, allocations: 79.52 kB / 484.5 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.4807, allocations: 8 kB / 484.5 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.481, allocations: 31.83 kB / 484.6 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.481, allocations: 30.42 kB / 484.6 MB, free: 5.098 MB / 346.7 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 () * 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.0001057/0.4811, allocations: 129.9 kB / 484.7 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003053/0.4814, allocations: 230.8 kB / 485 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.4815, allocations: 31.62 kB / 485 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003609/0.4819, allocations: 252.5 kB / 485.2 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.4819, allocations: 4 kB / 485.2 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4819, allocations: 3.953 kB / 485.2 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4819, allocations: 4 kB / 485.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002447/0.4822, allocations: 322.1 kB / 485.6 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4822, allocations: 3.938 kB / 485.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.4824, allocations: 39.97 kB / 485.6 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4824, allocations: 0 / 485.6 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.4824, allocations: 11.67 kB / 485.6 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.4825, allocations: 0 / 485.6 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4825, allocations: 0 / 485.6 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004549/0.4829, allocations: 366.6 kB / 486 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/0.483, allocations: 115.9 kB / 486.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.311e-05/0.4831, allocations: 3.125 kB / 486.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.4833, allocations: 27.22 kB / 486.1 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.828e-05/0.4834, allocations: 27.39 kB / 486.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.4834, allocations: 14.48 kB / 486.2 MB, free: 3.727 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000164/0.4836, allocations: 213.5 kB / 486.4 MB, free: 3.559 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4836, allocations: 0 / 486.4 MB, free: 3.559 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003399/0.4839, allocations: 67.84 kB / 486.4 MB, free: 3.492 MB / 346.7 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) * 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.0006553/0.4846, allocations: 0.9244 MB / 487.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.4849, allocations: 257.5 kB / 487.6 MB, free: 2.434 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4849, allocations: 0 / 487.6 MB, free: 2.434 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.4851, allocations: 102.2 kB / 487.7 MB, free: 2.359 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.4854, allocations: 36.95 kB / 487.7 MB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009383/0.4863, allocations: 0.5099 MB / 488.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/0.4865, allocations: 0.7951 MB / 489 MB, free: 1.027 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001636/0.4867, allocations: 55.28 kB / 489.1 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.4868, allocations: 113.3 kB / 489.2 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4868, allocations: 0 / 489.2 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.5123, allocations: 5.533 MB / 494.7 MB, free: 11.47 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/0.5126, allocations: 143.3 kB / 494.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.052/2.565, allocations: 0 / 494.9 MB, free: 11.28 MB / 362.7 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)