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.001311/0.001311, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001371/0.001371, allocations: 213.7 kB / 24.54 MB, free: 4.016 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.5/1.5, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.001974/0.001974, allocations: 76.53 kB / 378.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2862, allocations: 53.36 MB / 431.9 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003617/0.2898, allocations: 2.307 MB / 434.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.2917, allocations: 0.9581 MB / 435.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.2919, allocations: 7.938 kB / 435.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.292, allocations: 39.47 kB / 435.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003568/0.2924, allocations: 115.3 kB / 435.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.2928, allocations: 159.7 kB / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004968/0.2933, allocations: 438.8 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.2935, allocations: 83.81 kB / 436 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.2938, allocations: 183.3 kB / 436.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002904/0.2941, allocations: 191.1 kB / 436.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.867e-05/0.2941, allocations: 36 kB / 436.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.2942, allocations: 59.98 kB / 436.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.2943, allocations: 99.61 kB / 436.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.2945, allocations: 183 kB / 436.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004891/0.295, allocations: 420.5 kB / 437.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.295, allocations: 0 / 437.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.295, allocations: 3.938 kB / 437.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.295, allocations: 0 / 437.2 MB, free: 1.656 MB / 334.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.001787/0.2968, allocations: 0.7668 MB / 437.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2968, allocations: 12.03 kB / 437.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.297, allocations: 58.73 kB / 438 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002945/0.2973, allocations: 64.62 kB / 438.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006616/0.2979, allocations: 326.7 kB / 438.4 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.2979, allocations: 24.81 kB / 438.4 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.74e-05/0.298, allocations: 24.38 kB / 438.4 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005552/0.2986, allocations: 259.2 kB / 438.7 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.2986, allocations: 15.94 kB / 438.7 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.2986, allocations: 8 kB / 438.7 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.2986, allocations: 8 kB / 438.7 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005616/0.2992, allocations: 181.7 kB / 438.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.3007, allocations: 0.7352 MB / 439.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.3013, allocations: 194.7 kB / 439.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.3015, allocations: 80.8 kB / 439.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.3015, allocations: 11.92 kB / 439.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005052/0.302, allocations: 241.7 kB / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.993e-06/0.302, allocations: 0 / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001031/0.3031, allocations: 383.3 kB / 440.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.3031, allocations: 55.41 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004182/0.3035, allocations: 324.5 kB / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.3036, allocations: 37.7 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.3037, allocations: 188.7 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.3038, allocations: 87.28 kB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.3039, allocations: 78.05 kB / 441.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.3041, allocations: 346.8 kB / 441.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.3044, allocations: 96.69 kB / 441.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003892/0.3048, allocations: 244.7 kB / 441.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006525/0.3054, allocations: 370.5 kB / 442.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3054, allocations: 4 kB / 442.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008229/0.3063, allocations: 433.5 kB / 442.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.3063, allocations: 33.7 kB / 442.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.3063, allocations: 7.938 kB / 442.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.3063, allocations: 4 kB / 442.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.3066, allocations: 71.89 kB / 442.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.3066, allocations: 11.94 kB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.3069, allocations: 47.75 kB / 442.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.954e-05/0.307, allocations: 24 kB / 442.9 MB, free: 11.54 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.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,pulse.T_start,$PRE.pulse.T_start,pulse.count,$PRE.pulse.count,$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.0002019/0.3072, allocations: 171.4 kB / 443.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.3072, allocations: 35.77 kB / 443.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007322/0.308, allocations: 305.4 kB / 443.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.308, allocations: 4 kB / 443.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.308, allocations: 0 / 443.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.308, allocations: 0 / 443.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/0.3084, allocations: 344.3 kB / 443.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3084, allocations: 0 / 443.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.3086, allocations: 39.91 kB / 443.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.3086, allocations: 0 / 443.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.3086, allocations: 16.05 kB / 443.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3086, allocations: 0 / 443.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3086, allocations: 4 kB / 443.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009872/0.3096, allocations: 455.2 kB / 444.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.3097, allocations: 39.75 kB / 444.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/0.3097, allocations: 12 kB / 444.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.3099, allocations: 23.97 kB / 444.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.001e-05/0.31, allocations: 23.95 kB / 444.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.85e-05/0.3101, allocations: 15.98 kB / 444.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002635/0.3103, allocations: 227.1 kB / 444.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3103, allocations: 3.938 kB / 444.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003399/0.3107, allocations: 71.88 kB / 444.7 MB, free: 9.703 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last,pulse.count,pulse.T_start) * 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.001367/0.312, allocations: 1.004 MB / 445.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006872/0.3127, allocations: 315.1 kB / 446 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3127, allocations: 0 / 446 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.313, allocations: 112.9 kB / 446.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3133, allocations: 53 kB / 446.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005042/0.3184, allocations: 3.505 MB / 449.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004624/0.3188, allocations: 0.7837 MB / 450.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001802/0.319, allocations: 51.03 kB / 450.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.3192, allocations: 123.4 kB / 450.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3192, allocations: 0 / 450.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0333/0.3525, allocations: 7.122 MB / 457.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.746/9.099, allocations: 7.453 kB / 457.7 MB, free: 12.47 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 -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.mat --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.479321260936558] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.y', 'rectifiedMean.y', 'rootMeanSquare.y', 'harmonic.mean1.y', 'harmonic.mean2.y'] 9.179336507804692 9.202925185 8.904461695 Calling exit ...