Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 119.7 kB / 18.5 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 213.6 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 67.89 kB / 373.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1165, allocations: 53.31 MB / 426.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003579/0.1201, allocations: 2.305 MB / 429.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.1218, allocations: 0.9425 MB / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1219, allocations: 8 kB / 430.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.122, allocations: 47.41 kB / 430.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.1224, allocations: 103.3 kB / 430.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003796/0.1228, allocations: 167.7 kB / 430.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.1232, allocations: 426.8 kB / 430.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.1234, allocations: 91.48 kB / 431 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.1237, allocations: 187.3 kB / 431.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002742/0.124, allocations: 191 kB / 431.3 MB, free: 368 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.1241, allocations: 36 kB / 431.4 MB, free: 332 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.901e-05/0.1242, allocations: 55.98 kB / 431.4 MB, free: 276 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.639e-05/0.1243, allocations: 99.61 kB / 431.5 MB, free: 176 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2287/0.353, allocations: 178.2 kB / 431.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009061/0.3539, allocations: 415.7 kB / 432.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3539, allocations: 0 / 432.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3539, allocations: 0 / 432.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.3539, allocations: 0.75 kB / 432.1 MB, free: 8.059 MB / 350.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.001597/0.3555, allocations: 0.7308 MB / 432.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.3555, allocations: 9.844 kB / 432.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.957e-05/0.3556, allocations: 58.11 kB / 432.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003166/0.3559, allocations: 69.14 kB / 433 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.3565, allocations: 389.6 kB / 433.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.3565, allocations: 20.09 kB / 433.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.558e-05/0.3566, allocations: 32.75 kB / 433.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.3571, allocations: 255.7 kB / 433.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3572, allocations: 2.297 kB / 433.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.3572, allocations: 8.906 kB / 433.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3572, allocations: 5.469 kB / 433.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004915/0.3577, allocations: 185.5 kB / 433.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.3589, allocations: 0.7884 MB / 434.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004445/0.3593, allocations: 174.4 kB / 434.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.3595, allocations: 88.05 kB / 434.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.3596, allocations: 8.031 kB / 434.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004856/0.36, allocations: 236 kB / 435.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.285e-06/0.36, allocations: 0.5 kB / 435.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009716/0.361, allocations: 385.6 kB / 435.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.3611, allocations: 61.36 kB / 435.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/0.3614, allocations: 325 kB / 435.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.3615, allocations: 36.97 kB / 435.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3616, allocations: 186.1 kB / 436.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.08e-05/0.3617, allocations: 86.05 kB / 436.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.3618, allocations: 77.42 kB / 436.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.3619, allocations: 343.5 kB / 436.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002652/0.3621, allocations: 101.3 kB / 436.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003218/0.3624, allocations: 236.4 kB / 436.9 MB, free: 5.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005544/0.363, allocations: 371.5 kB / 437.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.363, allocations: 2.844 kB / 437.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007924/0.3638, allocations: 437.1 kB / 437.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.888e-05/0.3638, allocations: 34.61 kB / 437.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3639, allocations: 4.5 kB / 437.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.3639, allocations: 8.094 kB / 437.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.3642, allocations: 73.48 kB / 437.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.3642, allocations: 10.95 kB / 437.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.3645, allocations: 44.52 kB / 437.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.3645, allocations: 19.3 kB / 437.9 MB, free: 5.547 MB / 350.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.0001804/0.3647, allocations: 169.8 kB / 438.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.186e-05/0.3647, allocations: 36.08 kB / 438.1 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007338/0.3655, allocations: 314.4 kB / 438.4 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3655, allocations: 5.406 kB / 438.4 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3655, allocations: 3.906 kB / 438.4 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3655, allocations: 1.969 kB / 438.4 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003662/0.3659, allocations: 360.1 kB / 438.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.3659, allocations: 4.516 kB / 438.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.3661, allocations: 40.02 kB / 438.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3661, allocations: 1.531 kB / 438.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.3661, allocations: 8.781 kB / 438.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3661, allocations: 3.75 kB / 438.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3661, allocations: 0 / 438.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009388/0.3671, allocations: 467.1 kB / 439.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.098e-05/0.3671, allocations: 112.2 kB / 439.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.907e-05/0.3672, allocations: 12.7 kB / 439.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.3674, allocations: 20.88 kB / 439.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.557e-05/0.3675, allocations: 23.52 kB / 439.5 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.3675, allocations: 15.27 kB / 439.5 MB, free: 4.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.3678, allocations: 231.2 kB / 439.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3678, allocations: 1.031 kB / 439.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.3682, allocations: 69.64 kB / 439.8 MB, free: 4.844 MB / 350.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.001105/0.3693, allocations: 1.005 MB / 440.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006891/0.3699, allocations: 317.6 kB / 441.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.37, allocations: 1.531 kB / 441.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002644/0.3702, allocations: 114 kB / 441.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.3706, allocations: 51.67 kB / 441.2 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004728/0.3753, allocations: 3.494 MB / 444.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.3756, allocations: 0.7861 MB / 445.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002161/0.3758, allocations: 52.62 kB / 445.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.376, allocations: 121.4 kB / 445.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.376, allocations: 0 / 445.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03364/0.4096, allocations: 6.983 MB / 452.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.564/8.974, allocations: 12.02 kB / 452.7 MB, free: 15.57 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemoSignalCharacteristic_fmu --startTime=0 --stopTime=0.5 --stepSize=0.0005 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.260600420180708] Failed to read output from testmodel.py, exit status != 0: 9.048593021929264 9.068739264 8.711102512 Calling exit ...