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.001182/0.001182, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001312/0.001312, allocations: 200 kB / 18.01 MB, free: 5.047 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009992/0.0009993, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.28, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003173/0.2832, allocations: 1.88 MB / 402.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2849, allocations: 1.122 MB / 403.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.285, allocations: 7.938 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.2853, allocations: 59.73 kB / 403.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.2856, allocations: 91.59 kB / 403.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.2862, allocations: 261.5 kB / 403.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002102/0.2865, allocations: 171.5 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2866, allocations: 29.56 kB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.2867, allocations: 79.62 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.2868, allocations: 79.61 kB / 404 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.2868, allocations: 12 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.287, allocations: 67.95 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.896e-05/0.2871, allocations: 47.84 kB / 404.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.03e-05/0.2871, allocations: 75.48 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.2875, allocations: 241.9 kB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2875, allocations: 0 / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2875, allocations: 0 / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2875, allocations: 0 / 404.4 MB, free: 4.586 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.0006721/0.2882, allocations: 0.5338 MB / 405 MB, free: 4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2882, allocations: 11.97 kB / 405 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.782e-05/0.2882, allocations: 42.75 kB / 405 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.343e-05/0.2883, allocations: 24.8 kB / 405 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.2887, allocations: 291.8 kB / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.2887, allocations: 384 / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.2887, allocations: 19.92 kB / 405.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.289, allocations: 154.3 kB / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2891, allocations: 0 / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2891, allocations: 3.984 kB / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.2891, allocations: 0 / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.2892, allocations: 35.92 kB / 405.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004603/0.2897, allocations: 394.3 kB / 405.9 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.2899, allocations: 111.9 kB / 406 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.482e-05/0.29, allocations: 54.55 kB / 406.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.2901, allocations: 4 kB / 406.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.2902, allocations: 71.33 kB / 406.2 MB, free: 2.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 3.135e-06/0.2902, allocations: 3.984 kB / 406.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003672/0.2906, allocations: 161.4 kB / 406.3 MB, free: 2.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.571e-05/0.2907, allocations: 158.2 kB / 406.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.291, allocations: 326.6 kB / 406.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.291, allocations: 29.7 kB / 406.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.54e-05/0.2911, allocations: 124.1 kB / 406.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.2911, allocations: 15.91 kB / 407 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.2912, allocations: 45.84 kB / 407 MB, free: 1.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.674e-05/0.2913, allocations: 330.8 kB / 407.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.688e-05/0.2914, allocations: 20.25 kB / 407.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.2915, allocations: 90.78 kB / 407.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.2916, allocations: 88.22 kB / 407.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2916, allocations: 0 / 407.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002373/0.2919, allocations: 121.4 kB / 407.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2919, allocations: 8 kB / 407.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2919, allocations: 8.062 kB / 407.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2919, allocations: 4 kB / 407.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.292, allocations: 19.98 kB / 407.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2921, allocations: 4 kB / 407.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.9e-05/0.2921, allocations: 15.83 kB / 407.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-06/0.2922, allocations: 4 kB / 407.7 MB, free: 0.9609 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.0001235/0.2923, allocations: 154.5 kB / 407.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.96e-05/0.2924, allocations: 69.58 kB / 407.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.2924, allocations: 21.7 kB / 407.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2924, allocations: 4 kB / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2924, allocations: 0 / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2925, allocations: 3.938 kB / 407.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.2926, allocations: 233.6 kB / 408.2 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2927, allocations: 0 / 408.2 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.739e-05/0.2927, allocations: 23.92 kB / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2927, allocations: 0 / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.2927, allocations: 0 / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2928, allocations: 4.062 kB / 408.2 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2928, allocations: 8.031 kB / 408.2 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.293, allocations: 166.6 kB / 408.4 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.483e-05/0.2931, allocations: 120.9 kB / 408.5 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.2932, allocations: 0 / 408.5 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.594e-05/0.2932, allocations: 7.938 kB / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.2933, allocations: 19.92 kB / 408.5 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2933, allocations: 4 kB / 408.5 MB, free: 28 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.2935, allocations: 245.9 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2935, allocations: 0 / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002558/0.2938, allocations: 28 kB / 408.8 MB, free: 15.76 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.001302/0.2951, allocations: 1.022 MB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002117/0.2953, allocations: 75.84 kB / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2953, allocations: 0 / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.838e-05/0.2954, allocations: 27.98 kB / 409.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.2958, allocations: 77.52 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.298, allocations: 2.198 MB / 412.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.2983, allocations: 0.7358 MB / 412.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.57e-05/0.2984, allocations: 33.52 kB / 413 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.205e-05/0.2985, allocations: 59.41 kB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2985, allocations: 0 / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.3197, allocations: 5.219 MB / 418.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.075, allocations: 8.625 kB / 418.2 MB, free: 6.434 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