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.00125/0.00125, allocations: 113.2 kB / 20.22 MB, free: 1.793 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.001449/0.001449, allocations: 212.3 kB / 23.48 MB, free: 5.227 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.408/1.408, allocations: 230.4 MB / 257 MB, free: 8.273 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.002053/0.002053, allocations: 71.83 kB / 377.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3117, allocations: 53.3 MB / 430.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003964/0.3157, allocations: 2.31 MB / 432.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.3178, allocations: 0.9581 MB / 433.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003292/0.3181, allocations: 7.938 kB / 433.7 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002277/0.3183, allocations: 39.53 kB / 433.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006342/0.319, allocations: 111.2 kB / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005462/0.3195, allocations: 167.7 kB / 434 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.3202, allocations: 426.8 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.3204, allocations: 91.48 kB / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004198/0.3209, allocations: 171.3 kB / 434.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003935/0.3213, allocations: 195.1 kB / 434.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.3214, allocations: 36 kB / 434.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.3215, allocations: 59.98 kB / 434.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.3217, allocations: 95.61 kB / 435 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002167/0.3219, allocations: 179 kB / 435.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005855/0.3225, allocations: 422.6 kB / 435.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3225, allocations: 4 kB / 435.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3225, allocations: 3.938 kB / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.3225, allocations: 0 / 435.6 MB, free: 2.023 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.001847/0.3243, allocations: 0.8382 MB / 436.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3244, allocations: 8.031 kB / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.718e-05/0.3245, allocations: 58.72 kB / 436.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003449/0.3248, allocations: 64.64 kB / 436.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007057/0.3255, allocations: 400.5 kB / 437 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.3255, allocations: 20.81 kB / 437 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-05/0.3256, allocations: 28.38 kB / 437 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005943/0.3262, allocations: 255.3 kB / 437.3 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.3262, allocations: 7.953 kB / 437.3 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.419e-05/0.3263, allocations: 12 kB / 437.3 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3263, allocations: 4 kB / 437.3 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005098/0.3268, allocations: 181.6 kB / 437.5 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.3283, allocations: 0.783 MB / 438.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.3288, allocations: 182.8 kB / 438.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.3291, allocations: 84.8 kB / 438.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.3291, allocations: 7.938 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005113/0.3296, allocations: 244.9 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.873e-06/0.3296, allocations: 0 / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009989/0.3306, allocations: 379.4 kB / 439.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.3307, allocations: 55.41 kB / 439.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004023/0.3311, allocations: 328.4 kB / 439.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.3311, allocations: 41.64 kB / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3313, allocations: 180.8 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.88e-05/0.3314, allocations: 95.2 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.3315, allocations: 74.06 kB / 439.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3317, allocations: 346.8 kB / 440.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.3319, allocations: 100.7 kB / 440.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/0.3323, allocations: 230.6 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006691/0.333, allocations: 385.3 kB / 440.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.333, allocations: 4 kB / 440.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009016/0.3339, allocations: 430.9 kB / 441.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.3339, allocations: 33.7 kB / 441.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.334, allocations: 7.984 kB / 441.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.334, allocations: 4 kB / 441.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.3343, allocations: 75.83 kB / 441.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.3343, allocations: 11.94 kB / 441.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.3346, allocations: 39.83 kB / 441.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/0.3346, allocations: 24.05 kB / 441.5 MB, free: 11.7 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.0002253/0.3348, allocations: 171.3 kB / 441.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-05/0.3349, allocations: 39.75 kB / 441.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007576/0.3357, allocations: 309.2 kB / 442.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.3357, allocations: 4 kB / 442.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3357, allocations: 0 / 442.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3357, allocations: 0 / 442.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004525/0.3361, allocations: 373.2 kB / 442.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3362, allocations: 0 / 442.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.3364, allocations: 35.97 kB / 442.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3364, allocations: 0 / 442.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.3364, allocations: 11.98 kB / 442.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3364, allocations: 0 / 442.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3364, allocations: 4 kB / 442.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.3374, allocations: 458.3 kB / 442.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.3375, allocations: 116.9 kB / 443 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.3376, allocations: 8 kB / 443 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.3378, allocations: 23.97 kB / 443.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.397e-05/0.3379, allocations: 23.97 kB / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.041e-05/0.338, allocations: 15.98 kB / 443.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002767/0.3382, allocations: 231 kB / 443.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3382, allocations: 0 / 443.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.3386, allocations: 67.89 kB / 443.4 MB, free: 9.738 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.001355/0.3399, allocations: 0.9992 MB / 444.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007137/0.3407, allocations: 327 kB / 444.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3407, allocations: 0 / 444.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002946/0.341, allocations: 112.9 kB / 444.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.3413, allocations: 53.5 kB / 444.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005403/0.3467, allocations: 3.503 MB / 448.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004415/0.3472, allocations: 0.7837 MB / 449.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.3474, allocations: 51.03 kB / 449.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.3476, allocations: 127.3 kB / 449.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3476, allocations: 0 / 449.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03714/0.3847, allocations: 6.954 MB / 456.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.844/9.229, allocations: 10.2 kB / 456.3 MB, free: 12.66 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.385801977943629] Failed to read output from testmodel.py, exit status != 0: 9.304099374916404 9.331636606 9.004353759 Calling exit ...