Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001407/0.001407, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001619/0.001619, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 51.92 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2834, allocations: 53.36 MB / 431.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003587/0.287, allocations: 1.919 MB / 433.1 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.2893, allocations: 1.305 MB / 434.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.2894, allocations: 7.938 kB / 434.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.2898, allocations: 75.66 kB / 434.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.2901, allocations: 127.4 kB / 434.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007043/0.2908, allocations: 221.6 kB / 434.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.2911, allocations: 183.5 kB / 435 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2912, allocations: 25.73 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.2914, allocations: 79.69 kB / 435.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/0.2915, allocations: 83.61 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.2915, allocations: 15.94 kB / 435.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001789/0.2917, allocations: 71.94 kB / 435.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.665e-05/0.2918, allocations: 51.84 kB / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.231e-05/0.2919, allocations: 79.41 kB / 435.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004345/0.2923, allocations: 240.7 kB / 435.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2923, allocations: 0 / 435.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2923, allocations: 4 kB / 435.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.2924, allocations: 0 / 435.6 MB, free: 2.344 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008147/0.2932, allocations: 482.5 kB / 436.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2932, allocations: 8.031 kB / 436.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.594e-05/0.2933, allocations: 42.69 kB / 436.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.2933, allocations: 24.8 kB / 436.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000446/0.2938, allocations: 229.5 kB / 436.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.2938, allocations: 8.375 kB / 436.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.2938, allocations: 11.94 kB / 436.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.2942, allocations: 151.6 kB / 436.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.2942, allocations: 3.938 kB / 436.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.2942, allocations: 7.938 kB / 436.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/0.2942, allocations: 8 kB / 436.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.2944, allocations: 27.98 kB / 436.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005825/0.2949, allocations: 361.4 kB / 436.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.2952, allocations: 119.9 kB / 437.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.852e-05/0.2953, allocations: 42.56 kB / 437.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.2953, allocations: 4.062 kB / 437.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.2955, allocations: 87.31 kB / 437.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.2955, allocations: 0 / 437.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004554/0.296, allocations: 145.5 kB / 437.3 MB, free: 424 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.2961, allocations: 162.2 kB / 437.5 MB, free: 224 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003944/0.2965, allocations: 337.8 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.2965, allocations: 33.95 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.392e-05/0.2966, allocations: 128.1 kB / 438 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.2966, allocations: 19.89 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/0.2967, allocations: 33.7 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.2968, allocations: 330.8 kB / 438.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.093e-05/0.2969, allocations: 27.92 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.297, allocations: 90.84 kB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.2972, allocations: 84.22 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2972, allocations: 0 / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002369/0.2974, allocations: 129.4 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2975, allocations: 8 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.2975, allocations: 0 / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2975, allocations: 7.938 kB / 438.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.2976, allocations: 15.98 kB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.2976, allocations: 4 kB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.057e-05/0.2977, allocations: 15.86 kB / 438.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.021e-05/0.2977, allocations: 4 kB / 438.7 MB, free: 14.9 MB / 350.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.0001729/0.2979, allocations: 158.2 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-05/0.298, allocations: 73.5 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002775/0.2983, allocations: 115.3 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.2983, allocations: 48 / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2983, allocations: 7.984 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2983, allocations: 3.938 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.2985, allocations: 212.6 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2985, allocations: 4.062 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.2986, allocations: 15.98 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.2986, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.2986, allocations: 4 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2986, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2986, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.2989, allocations: 170.5 kB / 439.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.214e-05/0.299, allocations: 35.84 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.299, allocations: 4 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.313e-05/0.2991, allocations: 7.922 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.2992, allocations: 15.92 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.2992, allocations: 4 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.2994, allocations: 249.2 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.2994, allocations: 0 / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002909/0.2997, allocations: 39.92 kB / 439.8 MB, free: 13.71 MB / 350.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.002064/0.3018, allocations: 1.022 MB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.302, allocations: 75.84 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.302, allocations: 0 / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.381e-05/0.3021, allocations: 31.92 kB / 440.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.3026, allocations: 65.17 kB / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.3054, allocations: 2.234 MB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.3058, allocations: 0.7476 MB / 444 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.303e-05/0.3059, allocations: 25.73 kB / 444 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.306, allocations: 59.41 kB / 444.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.306, allocations: 4 kB / 444.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.3391, allocations: 5.484 MB / 449.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.67, allocations: 11.42 kB / 449.6 MB, free: 4.02 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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 3.98963e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.IntegerSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.328756689999864]