Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.00134/0.00134, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.00147/0.00147, allocations: 210.5 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 230.5 MB / 258.1 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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="mat",numberOfIntervals=1000,variableFilter="time|mean.y|rectifiedMean.y|rootMeanSquare.y|harmonic.mean1.y|harmonic.mean2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mean.y|rectifiedMean.y|rootMeanSquare.y|harmonic.mean1.y|harmonic.mean2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 59.91 kB / 379 MB, free: 2.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2949, allocations: 53.41 MB / 432.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.004006/0.2989, allocations: 2.151 MB / 434.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.3011, allocations: 0.9036 MB / 435.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.3013, allocations: 7.938 kB / 435.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.3014, allocations: 39.47 kB / 435.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000431/0.3019, allocations: 114.6 kB / 435.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.3024, allocations: 171.7 kB / 435.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000557/0.3029, allocations: 430.8 kB / 436.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.3032, allocations: 87.78 kB / 436.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000354/0.3035, allocations: 179.3 kB / 436.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.3038, allocations: 175.1 kB / 436.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.598e-05/0.3039, allocations: 40 kB / 436.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.304, allocations: 55.94 kB / 436.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.3042, allocations: 95.66 kB / 436.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.3043, allocations: 147.1 kB / 436.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005637/0.3049, allocations: 421.1 kB / 437.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3049, allocations: 0 / 437.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3049, allocations: 4 kB / 437.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3049, allocations: 0 / 437.4 MB, free: 1.574 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.001807/0.3067, allocations: 0.7706 MB / 438.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.3068, allocations: 15.98 kB / 438.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.3071, allocations: 64.62 kB / 438.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/0.3077, allocations: 322.8 kB / 438.5 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.3078, allocations: 16.81 kB / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.124e-05/0.3078, allocations: 36.33 kB / 438.6 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006026/0.3084, allocations: 255.5 kB / 438.8 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.3084, allocations: 4 kB / 438.8 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.3085, allocations: 15.92 kB / 438.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.3085, allocations: 12 kB / 438.9 MB, free: 0 / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.309, allocations: 177.6 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.3104, allocations: 0.6384 MB / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.3109, allocations: 170.7 kB / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002408/0.3111, allocations: 92.17 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.3111, allocations: 3.938 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005181/0.3116, allocations: 244.9 kB / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.164e-06/0.3116, allocations: 0 / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001009/0.3126, allocations: 387.3 kB / 440.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.3127, allocations: 59.39 kB / 440.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000421/0.3131, allocations: 320.5 kB / 440.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.692e-05/0.3132, allocations: 41.69 kB / 441 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.3133, allocations: 184.7 kB / 441.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.501e-05/0.3134, allocations: 91.27 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.3136, allocations: 74.06 kB / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.3137, allocations: 346.8 kB / 441.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.314, allocations: 130.4 kB / 441.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.3144, allocations: 264 kB / 442 MB, free: 12.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006519/0.3151, allocations: 373 kB / 442.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.3151, allocations: 0 / 442.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008683/0.316, allocations: 464.6 kB / 442.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5e-05/0.316, allocations: 40.34 kB / 442.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.316, allocations: 4 kB / 442.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.316, allocations: 8 kB / 442.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.3163, allocations: 67.89 kB / 443 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.593e-05/0.3164, allocations: 15.88 kB / 443 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.3166, allocations: 35.83 kB / 443 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.3167, allocations: 28.05 kB / 443 MB, free: 11.55 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.000212/0.3169, allocations: 163.5 kB / 443.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.536e-05/0.317, allocations: 47.69 kB / 443.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007185/0.3177, allocations: 306.3 kB / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3177, allocations: 8 kB / 443.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3177, allocations: 0 / 443.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3177, allocations: 3.984 kB / 443.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003124/0.318, allocations: 253.1 kB / 443.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.318, allocations: 0 / 443.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.3182, allocations: 43.91 kB / 443.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.3182, allocations: 4 kB / 443.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.3183, allocations: 15.98 kB / 443.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3183, allocations: 0 / 443.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3183, allocations: 0 / 443.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009917/0.3193, allocations: 469.9 kB / 444.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.331e-05/0.3193, allocations: 31.73 kB / 444.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.3194, allocations: 12 kB / 444.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.3196, allocations: 19.97 kB / 444.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.049e-05/0.3197, allocations: 27.95 kB / 444.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.93e-05/0.3197, allocations: 19.98 kB / 444.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002538/0.32, allocations: 227.1 kB / 444.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.32, allocations: 0 / 444.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003575/0.3203, allocations: 71.88 kB / 444.7 MB, free: 9.793 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.0001631/0.3205, allocations: 115.9 kB / 444.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000708/0.3212, allocations: 336.7 kB / 445.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3212, allocations: 0 / 445.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002993/0.3215, allocations: 119.8 kB / 445.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.3219, allocations: 54 kB / 445.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.3231, allocations: 0.6622 MB / 446 MB, free: 8.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.3232, allocations: 181.5 kB / 446.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.3234, allocations: 39.42 kB / 446.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3234, allocations: 0 / 446.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of Templates: time 0.007496/0.3309, allocations: 4.443 MB / 450.7 MB, free: 3.777 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemoSignalCharacteristic/DemoSignalCharacteristic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mean.y,rectifiedMean.y,rootMeanSquare.y,harmonic.mean1.y,harmonic.mean2.y Variables in the result:harmonic.mean1.y,harmonic.mean2.y,mean.y,rectifiedMean.y,rootMeanSquare.y,time [Calling sys.exit(0), Time elapsed: 7.244097308255732]