Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 106.8 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 215.5 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 230.6 MB / 258.3 MB, free: 7.777 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 51.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2154, allocations: 53.37 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003379/0.2188, allocations: 2.144 MB / 434.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.2204, allocations: 0.8958 MB / 435.4 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.2206, allocations: 15.81 kB / 435.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.2207, allocations: 39.53 kB / 435.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003537/0.2211, allocations: 115.2 kB / 435.6 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.2214, allocations: 171.6 kB / 435.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004678/0.2219, allocations: 430.8 kB / 436.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.2221, allocations: 91.8 kB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.2224, allocations: 183.2 kB / 436.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.2226, allocations: 187.1 kB / 436.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.424e-05/0.2227, allocations: 36 kB / 436.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.2228, allocations: 55.98 kB / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.779e-05/0.2229, allocations: 99.61 kB / 436.8 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.223, allocations: 143.2 kB / 436.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004672/0.2235, allocations: 425 kB / 437.3 MB, free: 1.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2235, allocations: 4 kB / 437.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2235, allocations: 4 kB / 437.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2235, allocations: 0 / 437.3 MB, free: 1.688 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.001675/0.2252, allocations: 0.7649 MB / 438.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2252, allocations: 8.031 kB / 438.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.2255, allocations: 72.56 kB / 438.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000613/0.2262, allocations: 318.8 kB / 438.5 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.2262, allocations: 20.81 kB / 438.5 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.427e-05/0.2263, allocations: 32.33 kB / 438.5 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005643/0.2268, allocations: 267.4 kB / 438.8 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.2268, allocations: 0 / 438.8 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.2269, allocations: 11.98 kB / 438.8 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2269, allocations: 4 kB / 438.8 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.2274, allocations: 185.6 kB / 439 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.2287, allocations: 0.6267 MB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005011/0.2292, allocations: 182.7 kB / 439.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.2294, allocations: 84.8 kB / 439.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.2295, allocations: 8 kB / 439.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005058/0.23, allocations: 244.9 kB / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.385e-06/0.23, allocations: 0 / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009956/0.231, allocations: 383.3 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.231, allocations: 59.39 kB / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.2314, allocations: 320.5 kB / 440.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.2314, allocations: 41.69 kB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.2316, allocations: 188.7 kB / 441.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.328e-05/0.2316, allocations: 91.27 kB / 441.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.2318, allocations: 74 kB / 441.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.2319, allocations: 346.8 kB / 441.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.2322, allocations: 126.4 kB / 441.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003949/0.2326, allocations: 268 kB / 442 MB, free: 12.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00065/0.2333, allocations: 374.5 kB / 442.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2333, allocations: 0 / 442.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008988/0.2342, allocations: 462.6 kB / 442.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.2342, allocations: 41.62 kB / 442.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.2342, allocations: 4 kB / 442.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.2343, allocations: 8.531 kB / 442.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.2346, allocations: 71.89 kB / 442.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.2346, allocations: 11.94 kB / 442.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.2349, allocations: 35.83 kB / 443 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.2349, allocations: 23.98 kB / 443 MB, free: 11.67 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.0002029/0.2351, allocations: 167.4 kB / 443.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.283e-05/0.2352, allocations: 43.62 kB / 443.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007729/0.236, allocations: 309.4 kB / 443.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.236, allocations: 3.984 kB / 443.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.236, allocations: 0 / 443.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.405e-05/0.236, allocations: 31.73 kB / 443.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.2361, allocations: 12 kB / 443.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002488/0.2363, allocations: 23.97 kB / 443.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/0.2364, allocations: 28 kB / 443.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000923/0.2374, allocations: 401.8 kB / 444 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001133/0.2385, allocations: 0.6132 MB / 444.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002908/0.2388, allocations: 112.2 kB / 444.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.239, allocations: 227.1 kB / 444.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of Backend: time 4.71e-07/0.239, allocations: 0 / 444.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008795/0.2399, allocations: 355.2 kB / 445.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of SimCode: time 0.001278/0.2412, allocations: 1.056 MB / 446.4 MB, free: 8.203 MB / 350.1 MB Notification: Performance of Templates: time 0.009857/0.251, allocations: 5.007 MB / 451.4 MB, free: 3.27 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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:app,dutyCycle,f,harmonic.f,harmonic.gain.k,harmonic.k,harmonic.mean1.f,harmonic.mean1.t0,harmonic.mean1.x0,harmonic.mean1.y,harmonic.mean1.y0,harmonic.mean1.yGreaterOrEqualZero,harmonic.mean1.y_last,harmonic.mean2.f,harmonic.mean2.t0,harmonic.mean2.x0,harmonic.mean2.y,harmonic.mean2.y0,harmonic.mean2.yGreaterOrEqualZero,harmonic.mean2.y_last,harmonic.product1.significantDigits,harmonic.product2.significantDigits,harmonic.sin1.amplitude,harmonic.sin1.continuous,harmonic.sin1.f,harmonic.sin1.offset,harmonic.sin1.phase,harmonic.sin1.startTime,harmonic.sin2.amplitude,harmonic.sin2.continuous,harmonic.sin2.f,harmonic.sin2.offset,harmonic.sin2.phase,harmonic.sin2.startTime,harmonic.x0Cos,harmonic.x0Sin,harmonic.y0Cos,harmonic.y0Sin,mean.f,mean.t0,mean.x0,mean.y,mean.y0,mean.yGreaterOrEqualZero,mean.y_last,offset,pulse.amplitude,pulse.nperiod,pulse.offset,pulse.period,pulse.startTime,pulse.width,rectifiedMean.abs1.generateEvent,rectifiedMean.f,rectifiedMean.mean.f,rectifiedMean.mean.t0,rectifiedMean.mean.x0,rectifiedMean.mean.y0,rectifiedMean.mean.yGreaterOrEqualZero,rectifiedMean.mean.y_last,rectifiedMean.x0,rectifiedMean.y,rectifiedMean.y0,rootMeanSquare.f,rootMeanSquare.mean.f,rootMeanSquare.mean.t0,rootMeanSquare.mean.x0,rootMeanSquare.mean.y0,rootMeanSquare.mean.yGreaterOrEqualZero,rootMeanSquare.product.significantDigits,rootMeanSquare.x0,rootMeanSquare.y,rootMeanSquare.y0,time,y1_arg,y1_cos,y1_rms,y1_sin,y_mean,y_rect,y_rms [Calling sys.exit(0), Time elapsed: 4.314239692001138]