Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 190.7 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 47.91 kB / 371.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2516, allocations: 52.18 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003455/0.255, allocations: 1.813 MB / 425.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2563, allocations: 0.6466 MB / 425.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2564, allocations: 7.938 kB / 425.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.2566, allocations: 27.73 kB / 425.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.2567, allocations: 27.8 kB / 425.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005901/0.2573, allocations: 143.6 kB / 426 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.2576, allocations: 155.6 kB / 426.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.2577, allocations: 39.8 kB / 426.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.2578, allocations: 59.78 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2579, allocations: 63.67 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.258, allocations: 12 kB / 426.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.2581, allocations: 51.91 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.945e-05/0.2582, allocations: 47.84 kB / 426.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.721e-05/0.2582, allocations: 55.66 kB / 426.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.2585, allocations: 199.1 kB / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2585, allocations: 0 / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.2585, allocations: 3.984 kB / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.2586, allocations: 0 / 426.7 MB, free: 11.03 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007453/0.2593, allocations: 404.7 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2593, allocations: 12.03 kB / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.514e-05/0.2594, allocations: 8.375 kB / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.53e-05/0.2594, allocations: 42.73 kB / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.397e-05/0.2595, allocations: 24.8 kB / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.2598, allocations: 175.3 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.2598, allocations: 16.06 kB / 427.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.2598, allocations: 12 kB / 427.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.2605, allocations: 349.6 kB / 427.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2605, allocations: 0 / 427.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.2605, allocations: 8 kB / 427.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.2605, allocations: 4 kB / 427.7 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002321/0.2608, allocations: 87.88 kB / 427.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004/0.2612, allocations: 292.7 kB / 428.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004311/0.2616, allocations: 177.3 kB / 428.3 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.2618, allocations: 89.67 kB / 428.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004013/0.2622, allocations: 67.92 kB / 428.4 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.2622, allocations: 34.56 kB / 428.5 MB, free: 9.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.472e-06/0.2622, allocations: 4 kB / 428.5 MB, free: 9.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005902/0.2628, allocations: 248.5 kB / 428.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.474e-05/0.2629, allocations: 114.8 kB / 428.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.2631, allocations: 194.2 kB / 429 MB, free: 8.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.2631, allocations: 29.64 kB / 429 MB, free: 8.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.374e-05/0.2632, allocations: 108.6 kB / 429.1 MB, free: 8.363 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.2632, allocations: 19.89 kB / 429.2 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.101e-05/0.2633, allocations: 41.64 kB / 429.2 MB, free: 8.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2634, allocations: 326.8 kB / 429.5 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.262e-05/0.2635, allocations: 39.97 kB / 429.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.2637, allocations: 186.8 kB / 429.7 MB, free: 7.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.264, allocations: 208.1 kB / 430 MB, free: 7.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.264, allocations: 7.938 kB / 430 MB, free: 7.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000343/0.2643, allocations: 213.1 kB / 430.2 MB, free: 7.195 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2643, allocations: 8 kB / 430.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2643, allocations: 4 kB / 430.2 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.2644, allocations: 8 kB / 430.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.2645, allocations: 44.5 kB / 430.2 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2645, allocations: 8 kB / 430.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.2646, allocations: 15.95 kB / 430.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.2647, allocations: 12 kB / 430.3 MB, free: 7.098 MB / 334.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.000143/0.2648, allocations: 157.1 kB / 430.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.2651, allocations: 165.4 kB / 430.6 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003627/0.2655, allocations: 175.3 kB / 430.8 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.2655, allocations: 4 kB / 430.8 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2655, allocations: 4 kB / 430.8 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2655, allocations: 3.984 kB / 430.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.2657, allocations: 180.6 kB / 430.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.2657, allocations: 4 kB / 430.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/0.2658, allocations: 31.92 kB / 431 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2658, allocations: 0 / 431 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.2659, allocations: 7.984 kB / 431 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2659, allocations: 7.938 kB / 431 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2659, allocations: 0 / 431 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004115/0.2663, allocations: 288.1 kB / 431.3 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.66e-05/0.2664, allocations: 39.88 kB / 431.3 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.2664, allocations: 12 kB / 431.3 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.2665, allocations: 7.984 kB / 431.3 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.2666, allocations: 3.938 kB / 431.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.2666, allocations: 7.938 kB / 431.3 MB, free: 5.938 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001335/0.2667, allocations: 148.3 kB / 431.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2667, allocations: 0 / 431.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.267, allocations: 32 kB / 431.5 MB, free: 5.762 MB / 334.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.001027/0.2681, allocations: 0.9253 MB / 432.4 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003391/0.2684, allocations: 136.8 kB / 432.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2684, allocations: 0 / 432.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.352e-05/0.2684, allocations: 15.98 kB / 432.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006074/0.2691, allocations: 150.5 kB / 432.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.2717, allocations: 2.164 MB / 434.9 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.2718, allocations: 127.3 kB / 435 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.872e-05/0.2719, allocations: 13.58 kB / 435 MB, free: 2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.551e-05/0.2719, allocations: 51.39 kB / 435.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2719, allocations: 0 / 435.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.2968, allocations: 4.646 MB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.03, allocations: 3.938 kB / 439.7 MB, free: 13.48 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.470997346914373]