Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.0008698/0.0008698, allocations: 91.67 kB / 20.68 MB, free: 3.867 MB / 18.57 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.001137/0.001137, allocations: 166 kB / 23.95 MB, free: 0.5938 MB / 18.57 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 0.9206/0.9206, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.825e-05/2.004e-05, allocations: 6.219 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.002345/0.002365, allocations: 1.842 MB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008758/0.003241, allocations: 0.7048 MB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.003337, allocations: 7.938 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.003466, allocations: 23.67 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.003619, allocations: 31.78 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004475/0.004066, allocations: 163.5 kB / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.004248, allocations: 159.5 kB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.004375, allocations: 38.38 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.004533, allocations: 83.75 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.289e-05/0.004626, allocations: 51.8 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.004651, allocations: 12 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.121e-05/0.004742, allocations: 63.89 kB / 327.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.539e-05/0.004817, allocations: 39.84 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.686e-05/0.004864, allocations: 43.84 kB / 327.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.0051, allocations: 215.3 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.005105, allocations: 0 / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.005106, allocations: 0 / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.005112, allocations: 0 / 328.1 MB, free: 12.43 MB / 298.7 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.0005475/0.005659, allocations: 397.6 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.005699, allocations: 12.03 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.735e-05/0.005737, allocations: 46.73 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.005843, allocations: 36.72 kB / 328.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.006107, allocations: 189.7 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.006122, allocations: 8.562 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.006137, allocations: 12.36 kB / 328.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.006599, allocations: 358.7 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.006608, allocations: 7.938 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.006629, allocations: 4 kB / 329.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.006634, allocations: 0 / 329.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.006766, allocations: 83.95 kB / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005411/0.007307, allocations: 288.7 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.007599, allocations: 185 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.007706, allocations: 97.45 kB / 329.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002334/0.00794, allocations: 67.88 kB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.00796, allocations: 38.56 kB / 329.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.007962, allocations: 0 / 329.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003574/0.008319, allocations: 243.9 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.008382, allocations: 114.8 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.008505, allocations: 194.8 kB / 330.4 MB, free: 9.891 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.008517, allocations: 25.7 kB / 330.4 MB, free: 9.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.008572, allocations: 108.6 kB / 330.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.008587, allocations: 3.953 kB / 330.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.361e-05/0.008621, allocations: 33.66 kB / 330.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.857e-05/0.0087, allocations: 322.8 kB / 330.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.008738, allocations: 23.98 kB / 330.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.126e-05/0.008799, allocations: 89.95 kB / 331 MB, free: 9.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.977e-05/0.008869, allocations: 67.42 kB / 331 MB, free: 9.172 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.008871, allocations: 0 / 331 MB, free: 9.172 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001114/0.008982, allocations: 113.5 kB / 331.2 MB, free: 9.055 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.008996, allocations: 8 kB / 331.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.009001, allocations: 4.125 kB / 331.2 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.009013, allocations: 0 / 331.2 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.649e-05/0.009069, allocations: 15.98 kB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.009075, allocations: 4.141 kB / 331.2 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.099e-05/0.009116, allocations: 19.77 kB / 331.2 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.009124, allocations: 7.984 kB / 331.2 MB, free: 8.996 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (7): * Single equations (assignments): 7 * 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 9.231e-05/0.009216, allocations: 133.8 kB / 331.3 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.00939, allocations: 161.4 kB / 331.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.009625, allocations: 179.4 kB / 331.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.00963, allocations: 4 kB / 331.7 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.009634, allocations: 0 / 331.7 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.009639, allocations: 3.938 kB / 331.7 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.009787, allocations: 184.6 kB / 331.9 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.009794, allocations: 8 kB / 331.9 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.664e-05/0.00987, allocations: 35.91 kB / 331.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.009873, allocations: 0 / 331.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.009883, allocations: 0 / 331.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.009886, allocations: 8 kB / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.009887, allocations: 0 / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.01012, allocations: 286.5 kB / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.812e-05/0.01018, allocations: 43.77 kB / 332.2 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.0102, allocations: 8 kB / 332.2 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.255e-05/0.01027, allocations: 15.92 kB / 332.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.01029, allocations: 3.938 kB / 332.3 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.01031, allocations: 7.938 kB / 332.3 MB, free: 7.859 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.333e-05/0.01039, allocations: 156.2 kB / 332.4 MB, free: 7.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01039, allocations: 0 / 332.4 MB, free: 7.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001924/0.01059, allocations: 28 kB / 332.5 MB, free: 7.68 MB / 298.7 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.000622/0.01121, allocations: 0.9113 MB / 333.4 MB, free: 6.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001771/0.01139, allocations: 107.9 kB / 333.5 MB, free: 6.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.01139, allocations: 0 / 333.5 MB, free: 6.637 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.817e-05/0.0114, allocations: 8 kB / 333.5 MB, free: 6.629 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.01181, allocations: 145.5 kB / 333.6 MB, free: 6.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.01311, allocations: 1.821 MB / 335.4 MB, free: 4.547 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.239e-05/0.01319, allocations: 127.6 kB / 335.6 MB, free: 4.406 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.779e-05/0.01323, allocations: 9.156 kB / 335.6 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.17e-05/0.01329, allocations: 44.48 kB / 335.6 MB, free: 4.352 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01329, allocations: 0 / 335.6 MB, free: 4.352 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.03265, allocations: 4.982 MB / 340.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.893/6.926, allocations: 3.125 kB / 340.6 MB, free: 15.5 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.limiter.u,sample1.limiter.y,sample1.noise.u [Calling sys.exit(0), Time elapsed: 8.765094033442438]