Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 105.5 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2428, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003195/0.2461, allocations: 1.868 MB / 402.1 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.2479, allocations: 1.126 MB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.641e-05/0.248, allocations: 3.938 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003239/0.2483, allocations: 71.66 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.2486, allocations: 99.58 kB / 403.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006936/0.2493, allocations: 252.4 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002336/0.2495, allocations: 167.5 kB / 403.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.2497, allocations: 37.52 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.2498, allocations: 71.7 kB / 403.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.2499, allocations: 75.69 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.2499, allocations: 8 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.2501, allocations: 71.88 kB / 404.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.275e-05/0.2502, allocations: 47.78 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.769e-05/0.2503, allocations: 83.47 kB / 404.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003542/0.2507, allocations: 238 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2507, allocations: 0 / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2507, allocations: 0 / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.2507, allocations: 4 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007314/0.2514, allocations: 0.5349 MB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2515, allocations: 11.97 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.808e-05/0.2515, allocations: 38.73 kB / 405 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.383e-05/0.2516, allocations: 20.8 kB / 405 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.252, allocations: 291.8 kB / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.252, allocations: 8.375 kB / 405.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.2521, allocations: 15.88 kB / 405.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003234/0.2524, allocations: 151.6 kB / 405.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2524, allocations: 4 kB / 405.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.2524, allocations: 4 kB / 405.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2524, allocations: 0 / 405.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.2526, allocations: 43.91 kB / 405.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005078/0.2531, allocations: 378.3 kB / 405.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.2533, allocations: 115.9 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.934e-05/0.2534, allocations: 46.56 kB / 406.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.2535, allocations: 4 kB / 406.1 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.2537, allocations: 83.31 kB / 406.2 MB, free: 2.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.844e-06/0.2537, allocations: 0 / 406.2 MB, free: 2.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003883/0.2541, allocations: 153.4 kB / 406.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.2542, allocations: 162.2 kB / 406.5 MB, free: 2.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000364/0.2546, allocations: 326.9 kB / 406.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2546, allocations: 37.7 kB / 406.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.975e-05/0.2547, allocations: 124.1 kB / 406.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.2547, allocations: 15.98 kB / 407 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.2548, allocations: 37.59 kB / 407 MB, free: 1.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2549, allocations: 330.8 kB / 407.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.846e-05/0.255, allocations: 19.98 kB / 407.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.2551, allocations: 94.83 kB / 407.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.2553, allocations: 80.47 kB / 407.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.2553, allocations: 4 kB / 407.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002295/0.2555, allocations: 125.5 kB / 407.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.2556, allocations: 8 kB / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2556, allocations: 0 / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2556, allocations: 7.984 kB / 407.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.93e-05/0.2557, allocations: 12 kB / 407.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.2557, allocations: 7.938 kB / 407.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.445e-05/0.2558, allocations: 23.75 kB / 407.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2558, allocations: 8.047 kB / 407.7 MB, free: 0.9961 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001362/0.256, allocations: 154.6 kB / 407.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.694e-05/0.256, allocations: 69.48 kB / 407.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.273e-05/0.2561, allocations: 25.7 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2561, allocations: 4 kB / 407.9 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2561, allocations: 0 / 407.9 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2561, allocations: 3.938 kB / 408 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.2564, allocations: 233.6 kB / 408.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2564, allocations: 0 / 408.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.095e-05/0.2564, allocations: 16.05 kB / 408.2 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2564, allocations: 4 kB / 408.2 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.2565, allocations: 0 / 408.2 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2565, allocations: 4 kB / 408.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.2565, allocations: 0 / 408.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.2567, allocations: 166.5 kB / 408.4 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.823e-05/0.2568, allocations: 120.9 kB / 408.5 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.2569, allocations: 4 kB / 408.5 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.333e-05/0.257, allocations: 12 kB / 408.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.257, allocations: 19.86 kB / 408.5 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.257, allocations: 4 kB / 408.5 MB, free: 64 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002518/0.2573, allocations: 241.9 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2573, allocations: 0 / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.2576, allocations: 31.98 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00191/0.2595, allocations: 1.022 MB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002861/0.2598, allocations: 80.03 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2598, allocations: 0 / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.5e-05/0.2599, allocations: 32.05 kB / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.2603, allocations: 62.44 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.2628, allocations: 2.199 MB / 412.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.2631, allocations: 0.7397 MB / 412.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.344e-05/0.2632, allocations: 25.53 kB / 412.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.2633, allocations: 59.41 kB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2634, allocations: 3.938 kB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.2894, allocations: 5.22 MB / 418.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.135/8.425, allocations: 11.2 kB / 418.2 MB, free: 6.473 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches