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.001437/0.001437, allocations: 113 kB / 21.18 MB, free: 0.5898 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.001559/0.001559, allocations: 209.7 kB / 24.47 MB, free: 3.996 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.507/1.507, allocations: 230.4 MB / 258.1 MB, free: 8.141 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.001914/0.001914, allocations: 71.83 kB / 378.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3314, allocations: 53.31 MB / 432 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003703/0.3351, allocations: 2.308 MB / 434.4 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.3369, allocations: 0.9581 MB / 435.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.3371, allocations: 7.938 kB / 435.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.3373, allocations: 35.53 kB / 435.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000388/0.3376, allocations: 115.2 kB / 435.5 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.338, allocations: 163.7 kB / 435.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004949/0.3385, allocations: 430.8 kB / 436 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.3388, allocations: 91.48 kB / 436.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000316/0.3391, allocations: 175.3 kB / 436.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003125/0.3394, allocations: 195.1 kB / 436.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-05/0.3394, allocations: 36 kB / 436.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.3396, allocations: 55.98 kB / 436.6 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.3397, allocations: 95.61 kB / 436.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.3398, allocations: 179 kB / 436.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005163/0.3403, allocations: 428.1 kB / 437.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3403, allocations: 4 kB / 437.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3404, allocations: 0 / 437.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.3404, allocations: 0 / 437.3 MB, free: 2.105 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.001746/0.3421, allocations: 0.8381 MB / 438.1 MB, free: 1.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3421, allocations: 8.031 kB / 438.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003154/0.3425, allocations: 72.62 kB / 438.2 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006489/0.3431, allocations: 384.5 kB / 438.6 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.3431, allocations: 24.8 kB / 438.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.519e-05/0.3432, allocations: 36.31 kB / 438.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.3438, allocations: 255.5 kB / 438.9 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.3438, allocations: 3.953 kB / 438.9 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3438, allocations: 12 kB / 438.9 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3438, allocations: 4 kB / 438.9 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005122/0.3443, allocations: 189.6 kB / 439.1 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.3458, allocations: 0.7752 MB / 439.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005275/0.3463, allocations: 182.7 kB / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002553/0.3466, allocations: 88.8 kB / 440.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.3466, allocations: 4 kB / 440.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005143/0.3471, allocations: 244.9 kB / 440.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.014e-06/0.3471, allocations: 0 / 440.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001008/0.3481, allocations: 380.6 kB / 440.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.3482, allocations: 59.39 kB / 440.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.3486, allocations: 320.5 kB / 441.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.312e-05/0.3486, allocations: 41.69 kB / 441.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3488, allocations: 180.8 kB / 441.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.743e-05/0.3488, allocations: 91.27 kB / 441.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.349, allocations: 78.06 kB / 441.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3491, allocations: 346.8 kB / 441.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.3494, allocations: 92.69 kB / 441.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003723/0.3498, allocations: 234.5 kB / 442.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006664/0.3504, allocations: 385.5 kB / 442.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.3505, allocations: 4 kB / 442.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008444/0.3513, allocations: 430.6 kB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.376e-05/0.3514, allocations: 33.7 kB / 443 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3514, allocations: 7.938 kB / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.3514, allocations: 8 kB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.3517, allocations: 71.83 kB / 443.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.3517, allocations: 12.36 kB / 443.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.352, allocations: 43.77 kB / 443.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.352, allocations: 20 kB / 443.1 MB, free: 11.86 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.0002118/0.3522, allocations: 171.4 kB / 443.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.706e-05/0.3523, allocations: 39.7 kB / 443.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007406/0.353, allocations: 310.2 kB / 443.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.353, allocations: 4 kB / 443.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3531, allocations: 0 / 443.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3531, allocations: 0 / 443.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004088/0.3535, allocations: 369.2 kB / 444 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3535, allocations: 0 / 444 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.3537, allocations: 47.89 kB / 444.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.3537, allocations: 4 kB / 444.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.3537, allocations: 8 kB / 444.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3537, allocations: 0 / 444.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3537, allocations: 0 / 444.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.3548, allocations: 465.3 kB / 444.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.585e-05/0.3549, allocations: 104.9 kB / 444.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.4e-05/0.3549, allocations: 16.23 kB / 444.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.3552, allocations: 19.98 kB / 444.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.336e-05/0.3552, allocations: 27.95 kB / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.3553, allocations: 11.98 kB / 444.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.3555, allocations: 231.1 kB / 444.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3555, allocations: 0 / 444.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003411/0.3559, allocations: 71.89 kB / 445 MB, free: 9.887 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.00016/0.356, allocations: 121.8 kB / 445.1 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007203/0.3567, allocations: 311.9 kB / 445.4 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3567, allocations: 0 / 445.4 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.357, allocations: 119.9 kB / 445.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.3574, allocations: 67.92 kB / 445.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.3586, allocations: 0.6462 MB / 446.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.359, allocations: 0.7876 MB / 447 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.3591, allocations: 39.42 kB / 447.1 MB, free: 7.723 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3592, allocations: 3.938 kB / 447.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of Templates: time 0.007416/0.3666, allocations: 4.337 MB / 451.4 MB, free: 3.395 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: 7.5625598090700805] Failed to read output from testmodel.py, exit status != 0: 0.3754566772840917 0.38951277100000004 0.046141597 Calling exit ...