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.001357/0.001357, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001505/0.001505, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.373/1.373, allocations: 225.7 MB / 253.3 MB, free: 13.04 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.001519/0.001519, allocations: 47.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2757, allocations: 52.19 MB / 423.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003315/0.279, allocations: 1.887 MB / 425.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2803, allocations: 0.6972 MB / 426 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.2804, allocations: 7.938 kB / 426 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.2805, allocations: 15.8 kB / 426 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.2806, allocations: 23.8 kB / 426.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.2811, allocations: 162.8 kB / 426.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000221/0.2814, allocations: 147.7 kB / 426.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.2815, allocations: 41.72 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.2816, allocations: 59.72 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.2817, allocations: 59.69 kB / 426.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.2817, allocations: 12 kB / 426.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.2818, allocations: 51.97 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.987e-05/0.2819, allocations: 43.77 kB / 426.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.996e-05/0.282, allocations: 71.55 kB / 426.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.2823, allocations: 200 kB / 426.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2823, allocations: 0 / 426.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2823, allocations: 4 kB / 426.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.2823, allocations: 0 / 426.9 MB, free: 11.11 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.0007188/0.283, allocations: 405.5 kB / 427.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.2831, allocations: 15.97 kB / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.194e-05/0.2831, allocations: 384 / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.657e-05/0.2831, allocations: 46.73 kB / 427.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.214e-05/0.2832, allocations: 16.84 kB / 427.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/0.2835, allocations: 183.3 kB / 427.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.2835, allocations: 12.12 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.2835, allocations: 11.94 kB / 427.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006996/0.2842, allocations: 322.4 kB / 427.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.2843, allocations: 4 kB / 427.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.2843, allocations: 11.98 kB / 427.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.2843, allocations: 0 / 427.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.2845, allocations: 91.88 kB / 428 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004216/0.2849, allocations: 312.6 kB / 428.3 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004604/0.2854, allocations: 181.4 kB / 428.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.2856, allocations: 93.67 kB / 428.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003948/0.286, allocations: 71.86 kB / 428.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.286, allocations: 34.56 kB / 428.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.343e-06/0.286, allocations: 0 / 428.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006148/0.2866, allocations: 244.6 kB / 428.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.2867, allocations: 122.9 kB / 429 MB, free: 8.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.2869, allocations: 194.2 kB / 429.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.287, allocations: 29.7 kB / 429.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.287, allocations: 100.6 kB / 429.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.812e-05/0.2871, allocations: 19.89 kB / 429.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.293e-05/0.2871, allocations: 41.7 kB / 429.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.2873, allocations: 322.8 kB / 429.7 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.708e-05/0.2874, allocations: 39.97 kB / 429.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.2875, allocations: 170.8 kB / 429.9 MB, free: 7.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/0.2878, allocations: 204.1 kB / 430.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2878, allocations: 3.938 kB / 430.1 MB, free: 7.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003352/0.2881, allocations: 213.2 kB / 430.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2882, allocations: 8 kB / 430.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.2882, allocations: 7.938 kB / 430.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.2882, allocations: 4.594 kB / 430.4 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.2883, allocations: 47.91 kB / 430.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.2883, allocations: 15.94 kB / 430.4 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.2885, allocations: 11.95 kB / 430.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.2885, allocations: 12 kB / 430.4 MB, free: 7.203 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.0001505/0.2886, allocations: 157.1 kB / 430.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/0.2889, allocations: 157.5 kB / 430.7 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.2893, allocations: 191.2 kB / 430.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2893, allocations: 0 / 430.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.2893, allocations: 4 kB / 430.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2893, allocations: 0 / 430.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.2896, allocations: 200.5 kB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.2896, allocations: 0 / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.2897, allocations: 31.98 kB / 431.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.2897, allocations: 0 / 431.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.2897, allocations: 7.984 kB / 431.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2897, allocations: 0 / 431.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.2897, allocations: 7.938 kB / 431.2 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004285/0.2902, allocations: 289.5 kB / 431.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.398e-05/0.2902, allocations: 39.81 kB / 431.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.2903, allocations: 12 kB / 431.5 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.2904, allocations: 15.98 kB / 431.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.2904, allocations: 0 / 431.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.2905, allocations: 8 kB / 431.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001564/0.2906, allocations: 148.2 kB / 431.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2906, allocations: 0 / 431.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.2909, allocations: 32 kB / 431.7 MB, free: 5.848 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.001028/0.292, allocations: 0.9264 MB / 432.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003512/0.2923, allocations: 140.6 kB / 432.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2923, allocations: 0 / 432.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.155e-05/0.2924, allocations: 11.92 kB / 432.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006091/0.293, allocations: 140.9 kB / 432.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.2955, allocations: 2.156 MB / 435.1 MB, free: 2.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.2959, allocations: 0.7358 MB / 435.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.059e-05/0.2959, allocations: 17.48 kB / 435.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.482e-05/0.296, allocations: 51.41 kB / 435.9 MB, free: 1.422 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.296, allocations: 0 / 435.9 MB, free: 1.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02702/0.323, allocations: 4.512 MB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.94, allocations: 10.12 kB / 440.4 MB, free: 13.06 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.481902354978956]