Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.001324/0.001324, allocations: 118.2 kB / 18.49 MB, free: 4.566 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.001499/0.001499, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.545/1.545, allocations: 230.4 MB / 254.7 MB, free: 15.04 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 67.89 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.119, allocations: 53.36 MB / 427.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003851/0.1228, allocations: 1.876 MB / 428.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.1244, allocations: 0.7595 MB / 429.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.1245, allocations: 7.938 kB / 429.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.1246, allocations: 15.8 kB / 429.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.1248, allocations: 35.7 kB / 429.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.1253, allocations: 158 kB / 429.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002898/0.1256, allocations: 151.6 kB / 430.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1258, allocations: 45.53 kB / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.126, allocations: 67.7 kB / 430.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.1261, allocations: 63.64 kB / 430.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/0.1261, allocations: 12 kB / 430.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.1263, allocations: 59.95 kB / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.764e-05/0.1263, allocations: 35.89 kB / 430.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.509e-05/0.1264, allocations: 75.48 kB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.1267, allocations: 207.1 kB / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1267, allocations: 0 / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1267, allocations: 0 / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1267, allocations: 0 / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007759/0.1275, allocations: 482.7 kB / 431.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.1276, allocations: 8.031 kB / 431.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.085e-05/0.1276, allocations: 4.375 kB / 431.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.941e-05/0.1276, allocations: 50.73 kB / 431.1 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.1278, allocations: 36.72 kB / 431.2 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000346/0.1281, allocations: 248.1 kB / 431.4 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.1281, allocations: 12.12 kB / 431.4 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.1282, allocations: 4 kB / 431.4 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006979/0.1289, allocations: 333.1 kB / 431.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1289, allocations: 7.922 kB / 431.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.1289, allocations: 4 kB / 431.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1289, allocations: 4 kB / 431.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/0.1291, allocations: 83.94 kB / 431.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004232/0.1296, allocations: 345.5 kB / 432.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005085/0.1301, allocations: 262.1 kB / 432.5 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.1303, allocations: 90.02 kB / 432.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006538/0.1309, allocations: 0.5895 MB / 433.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.131, allocations: 34.56 kB / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.784e-06/0.131, allocations: 0 / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006301/0.1316, allocations: 245.4 kB / 433.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.207e-05/0.1317, allocations: 114.8 kB / 433.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.1319, allocations: 195.3 kB / 433.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1319, allocations: 33.64 kB / 433.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/0.132, allocations: 104.5 kB / 433.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.132, allocations: 23.83 kB / 433.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.264e-05/0.1321, allocations: 41.7 kB / 433.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1322, allocations: 326.8 kB / 434.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.948e-05/0.1323, allocations: 39.97 kB / 434.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.1325, allocations: 165.1 kB / 434.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.1327, allocations: 208.1 kB / 434.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.1327, allocations: 3.938 kB / 434.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003443/0.1331, allocations: 213.2 kB / 434.8 MB, free: 12.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1331, allocations: 8 kB / 434.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.1331, allocations: 4 kB / 434.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1331, allocations: 4 kB / 434.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.1333, allocations: 48.5 kB / 434.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.1333, allocations: 11.94 kB / 434.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.1334, allocations: 15.95 kB / 434.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.1334, allocations: 12 kB / 434.9 MB, free: 12.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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.0001504/0.1336, allocations: 153.6 kB / 435.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003253/0.1339, allocations: 157.5 kB / 435.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003847/0.1343, allocations: 181.8 kB / 435.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.1343, allocations: 11.98 kB / 435.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1343, allocations: 0 / 435.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.1343, allocations: 0 / 435.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002434/0.1345, allocations: 237.3 kB / 435.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1345, allocations: 0 / 435.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.1347, allocations: 27.98 kB / 435.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1347, allocations: 4 kB / 435.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.1347, allocations: 11.98 kB / 435.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1347, allocations: 0 / 435.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1347, allocations: 0 / 435.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004555/0.1352, allocations: 292.1 kB / 436 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.1353, allocations: 116.9 kB / 436.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.1353, allocations: 8 kB / 436.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.1354, allocations: 7.984 kB / 436.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.149e-05/0.1355, allocations: 7.984 kB / 436.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.1355, allocations: 12 kB / 436.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001335/0.1356, allocations: 143 kB / 436.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1356, allocations: 0 / 436.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003264/0.136, allocations: 35.98 kB / 436.3 MB, free: 10.68 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * 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.001073/0.137, allocations: 0.9223 MB / 437.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003632/0.1374, allocations: 148.7 kB / 437.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1374, allocations: 0 / 437.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.062e-05/0.1374, allocations: 8 kB / 437.4 MB, free: 9.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000628/0.1381, allocations: 141.6 kB / 437.5 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/0.1407, allocations: 2.182 MB / 439.7 MB, free: 7.059 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.141, allocations: 0.7281 MB / 440.4 MB, free: 6.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.947e-05/0.1411, allocations: 17.55 kB / 440.5 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.22e-05/0.1412, allocations: 47.42 kB / 440.5 MB, free: 6.238 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1412, allocations: 0 / 440.5 MB, free: 6.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.1634, allocations: 4.342 MB / 444.9 MB, free: 2.062 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.829/8.992, allocations: 8 kB / 444.9 MB, free: 2.055 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(sample1.noise.seedState[1]),previous(sample1.noise.seedState[2]),previous(sample1.noise.seedState[3]),sample1.bits,sample1.limited,sample1.limiter.u,sample1.limiter.uMax,sample1.limiter.uMin,sample1.limiter.y,sample1.noise.firstSeed[1],sample1.noise.firstSeed[2],sample1.noise.firstSeed[3],sample1.noise.noiseMax,sample1.noise.noiseMin,sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],sample1.noise.u,sample1.noise.y,sample1.noisy,sample1.quantization.bits,sample1.quantization.quantized,sample1.quantization.u,sample1.quantization.y,sample1.quantization.yMax,sample1.quantization.yMin,sample1.quantized,sample1.sample1.u,sample1.sample1.y,sample1.u,sample1.y,sample1.yMax,sample1.yMin,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 12.075281365949195]