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.001297/0.001297, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.001313/0.001313, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.351/1.351, allocations: 230.4 MB / 255.4 MB, free: 9.074 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: translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic") [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.001854/0.001854, allocations: 71.83 kB / 374.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2752, allocations: 53.32 MB / 428.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003604/0.2788, allocations: 2.295 MB / 430.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.2805, allocations: 0.9464 MB / 431.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.2806, allocations: 7.938 kB / 431.3 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.2807, allocations: 35.53 kB / 431.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00036/0.2811, allocations: 119.2 kB / 431.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.2815, allocations: 167.6 kB / 431.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004611/0.2819, allocations: 434.8 kB / 432 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.2821, allocations: 83.52 kB / 432.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.2824, allocations: 179.3 kB / 432.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.2827, allocations: 187.1 kB / 432.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.857e-05/0.2828, allocations: 40 kB / 432.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.2829, allocations: 55.98 kB / 432.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.283, allocations: 99.59 kB / 432.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.2832, allocations: 183 kB / 432.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004841/0.2836, allocations: 415.5 kB / 433.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2837, allocations: 4 kB / 433.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2837, allocations: 0 / 433.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.2837, allocations: 0 / 433.3 MB, free: 2.859 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.001505/0.2852, allocations: 0.7363 MB / 434 MB, free: 2.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2852, allocations: 8.031 kB / 434 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003007/0.2855, allocations: 68.62 kB / 434.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005875/0.2861, allocations: 380.6 kB / 434.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.2861, allocations: 28.75 kB / 434.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.861e-05/0.2862, allocations: 32.36 kB / 434.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005559/0.2867, allocations: 259.4 kB / 434.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.2868, allocations: 3.953 kB / 434.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.2868, allocations: 8 kB / 434.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.2868, allocations: 8 kB / 434.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005113/0.2873, allocations: 185.6 kB / 435 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.2887, allocations: 0.7713 MB / 435.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/0.2892, allocations: 186.6 kB / 435.9 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.2894, allocations: 84.8 kB / 436 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.2895, allocations: 8 kB / 436 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004859/0.29, allocations: 244.9 kB / 436.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.29, allocations: 4 kB / 436.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.000979/0.2909, allocations: 375.4 kB / 436.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.291, allocations: 59.41 kB / 436.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.2914, allocations: 324.5 kB / 437 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.2914, allocations: 33.7 kB / 437 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.2915, allocations: 192.8 kB / 437.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.126e-05/0.2916, allocations: 91.27 kB / 437.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.2917, allocations: 74.06 kB / 437.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.2919, allocations: 342.8 kB / 437.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.2922, allocations: 96.69 kB / 437.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.2926, allocations: 234.5 kB / 438 MB, free: 13.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007096/0.2933, allocations: 385 kB / 438.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2933, allocations: 0 / 438.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000829/0.2941, allocations: 434.4 kB / 438.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.717e-05/0.2942, allocations: 33.7 kB / 438.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2942, allocations: 4 kB / 438.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.2942, allocations: 4.531 kB / 438.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.2945, allocations: 79.83 kB / 438.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.2945, allocations: 8 kB / 439 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.2948, allocations: 43.75 kB / 439 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.2948, allocations: 20 kB / 439 MB, free: 12.74 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.0001908/0.295, allocations: 167.4 kB / 439.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.465e-05/0.295, allocations: 39.69 kB / 439.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007285/0.2958, allocations: 310.7 kB / 439.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2958, allocations: 4 kB / 439.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2958, allocations: 0 / 439.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2958, allocations: 0 / 439.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.2962, allocations: 365.3 kB / 439.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2962, allocations: 4 kB / 439.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.2964, allocations: 43.91 kB / 439.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2964, allocations: 0 / 439.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.2964, allocations: 11.98 kB / 439.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2964, allocations: 0 / 439.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2964, allocations: 0 / 439.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.2974, allocations: 462.3 kB / 440.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.601e-05/0.2975, allocations: 116.7 kB / 440.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.512e-05/0.2976, allocations: 16.05 kB / 440.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.2978, allocations: 15.98 kB / 440.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.083e-05/0.2979, allocations: 31.89 kB / 440.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.2979, allocations: 8 kB / 440.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.2982, allocations: 239 kB / 440.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2982, allocations: 0 / 440.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.2985, allocations: 67.89 kB / 440.9 MB, free: 10.77 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.000143/0.2986, allocations: 119.3 kB / 441 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007036/0.2993, allocations: 315.2 kB / 441.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2993, allocations: 0 / 441.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002983/0.2996, allocations: 115.9 kB / 441.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.3, allocations: 65.22 kB / 441.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.3012, allocations: 0.6458 MB / 442.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.3016, allocations: 0.7915 MB / 442.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3017, allocations: 35.42 kB / 442.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3017, allocations: 0 / 442.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of Templates: time 0.007083/0.3088, allocations: 4.33 MB / 447.3 MB, free: 4.289 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile [Timeout 660] (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 & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.972182082943618] Failed to read output from testmodel.py, exit status != 0: 0.31628031306900084 0.328755458 0.042399801 Calling exit ...